[英]How to join two bitsets in Java?
I have BitSet1 - {2,4,6,8}
and another BitSet2 - {10,20}
. 我有
BitSet1 - {2,4,6,8}
和另一个BitSet2 - {10,20}
。 How to combine the two Bitsets and get the final BitSet as {2,4,6,8,10,20}
. 如何组合两个Bitset并获得最终的
BitSet as {2,4,6,8,10,20}
。 Please help ? 请帮忙 ?
使用BitSet.or(BitSet)
可以将作为参数传递的位集中的所有元素包括到当前位集中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.