Here you can find the source of unsetBit(byte b, int pos)
Parameter | Description |
---|---|
b | a parameter |
pos | a parameter |
public static byte unsetBit(byte b, int pos)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w ww . ja v a 2 s .co m * * @param b * @param pos * @return */ public static byte unsetBit(byte b, int pos) { return (byte) (b & ~(1 << pos)); } }