Skip to content

Tag: java

Converting Long bitwise operations to BitSet bitwise operations

I’m trying to convert my code from using bitwise operations on Long type to the same operations on a BitSet, but I can’t find the right syntax. This is the original code: And this how I try to convert to BitSet: I can’t find the right syntax for this line: I did manage to use the and syntax …