title: ObjectInputStream read Array
body: <p>I am trying to read in an array from ObjectInputStream in Java.  I can find no documentation on how to do this.  I assume that it is readObject(), but this doesn't seem to work.</p>
  
  <pre><code>out.write(Object)
  out.write(Object)
  out.write(boolean[])
  </code></pre>
  
  <p>... in servlet ...</p>
  
  <pre><code>Object one = in.readObject();
  Object two = in.readObject();
  boolean[] thr = (boolean[])in.readObject();
  </code></pre>
  
  <p>Is this correct or am I doing it wrong?  If it's correct then any ideas on why it might not like this?</p>