public void set(int position) public void clear(int position) public boolean get(int position)
import java.util.BitSet; public class MainClass { public static void main(String args[]) { BitSet bites = new BitSet(); bites.set(0); bites.set(1); bites.set(2); bites.set(3); System.out.println(bites); } }
{0, 1, 2, 3}