This question already has an answer here:
Is there already a specific method for converting a Boolean array to a binary array or would I just need a for loop?
This question already has an answer here: Is there already a specific method for converting a Boolean array to a binary array or would I just need a for loop? |
|||||||||
marked as duplicate by R.J, Dennis Meng, LaurentG, Jim Garrison, Stephane Delcroix Nov 30 '13 at 8:10This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. |
|||||||||
|
If you want to serialize boolean array, check this: How to convert boolean array to binary and vice versa in Java? If you want to use bits instead of booleans, check
You can use these methods: BitSet#set(int) to set the bit to |
|||
|