title: How to convert boolean array to binary and vice versa in Java?
body: <p>What is the most efficient way to output a boolean array to (and input from) a file in Java? I was going to use a string with each character being either 't' or 'f' and then I thought, why not take eight time less space?</p>
  
  <p><strong>NOTE</strong></p>
  
  <p>I actually have no idea which answer is the better method, I've just chosen Peter's because I understand it. Thanks to both answerers!</p>