You are viewing a single comment's thread. Return to all comments →
if(op.equals("AND")){ if(x==1) b1.and(b2); else b2.and(b1); }else if(op.equals("OR")){ if(x==1) b1.or(b2); else b2.or(b1); }else if(op.equals("XOR")){ if(x==1) b1.xor(b2); else b2.xor(b1); }else if(op.equals("FLIP")){ if(x==1) b1.flip(y); else b2.flip(y); }else if(op.equals("SET")){ if(x==1) b1.set(y); else b2.set(y); } System.out.println(b1.cardinality()+" "+b2.cardinality());
Seems like cookies are disabled on this browser, please enable them to open this website
Java BitSet
You are viewing a single comment's thread. Return to all comments →