Here you can find the source of SetBit(byte _bitset, byte bit)
public static void SetBit(byte _bitset, byte bit)
//package com.java2s; //License from project: Apache License public class Main { public static void SetBit(byte _bitset, byte bit) { _bitset |= bit;// w ww . jav a2s.co m } }