Coder's Guild Mailing List

Writing an array of booleans in Java

Posted by Olli.Salonen@xxxxx.xxx on 2000-06-20

Hello! 

I need to write an array of booleans to a disk, so that each boolean
represents a bit. One byte could hold eight bits then. How can I accomplish
this as fast as possible. I can work out a slow way, but is there a thing
like packed array or bit table or anything in Java? 

Thank you very much for you help, Olli