设定位
/**来自 时代Java - N o w J a v a . c o m**/ //package com.nowjava; public class Main { public static void main(String[] argv) throws Exception { byte _bitset = 2; byte bit = 2; SetBit(_bitset, bit); } public static void SetBit(byte _bitset, byte bit) { _bitset |= bit; } }