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.
我有一个位集,我想检查特定索引处的位是零还是一。
只需使用.get():
.get()
return theSet.get(index);
true如果设置了该位,则返回,false否则返回。
true
false
Javadoc在这里