Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ビットセットがあり、特定のインデックスのビットが 0 か 1 かを確認したいと考えています。
使用するだけ.get()です:
.get()
return theSet.get(index);
trueビットが設定されている場合は返され、falseそうでない場合は返されます。
true
false
Javadocはこちら