티스토리 뷰

728x90

https://docs.oracle.com/javase/7/docs/api/java/util/BitSet.html

 

비트 열이 클 때 (32 이상) BitSet을 쓰쟈

 

 

BitSet (Java Platform SE 7 )

Returns a new long array containing all the bits in this bit set. More precisely, if long[] longs = s.toLongArray(); then longs.length == (s.length()+63)/64 and s.get(n) == ((longs[n/64] & (1L<<(n%64))) != 0) for all n < 64 * longs.length.

docs.oracle.com

 

반응형