Here you can find the source of UnsetBit(byte _bitset, byte bit)
public static void UnsetBit(byte _bitset, byte bit)
//package com.java2s; //License from project: Apache License public class Main { public static void UnsetBit(byte _bitset, byte bit) { _bitset &= Byte.valueOf(bit); }//from ww w . j a v a 2 s. c o m }