first thought:
use BigInteger and create it like this: new BigInteger (int value, int base). Then you can toString () this, and then create a BitSet using this String (I don't know how to do this without parsing the string, however).
-
did not read it correctly. This method will help you create a BitSet array, not an entire BitSet containing the entire array.
I do not know how to make an array of integers with one bit. I think you will need some markup, but how to make a good delimeter in binary format is a good question.
foret source share