Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bit array to byte question..

807589Oct 23 2008 — edited Oct 25 2008
Hi! I want to know if it is possible to convert a bit array into byte. (not byte array).
For example, I have a bit[] bits = {1,1,1,1,1,1,1,1}; I want to convert them into byte. Is this possible? Thank you for taking time to answer my question.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 22 2008
Added on Oct 23 2008
13 comments
667 views