我的代码是:
String blah = "blah";
byte[] blahBytes = blah.getBytes("US-ASCII");
System.out.println(Arrays.toString(blahBytes));
BitSet set = BitSet.valueOf(blahBytes);
System.out.println(set.length());
输出是:
[98, 108, 97, 104]
31
为什么length()
返回31?不应该是32?