title: java read 200mb file, when load in memory, how much memory will need?
body: <p>I have a file with 200mb, the file with following format</p>
  <p>each line is a spaced 0,1,2,3 integer.</p>
  <blockquote>
  <p>0 1 2 0 1 3...</p>
  </blockquote>
  <p>So, if I want to read this file into memory, should I be using array, using <code>Vector&lt;Integer&gt;</code>? or using <code>ByteArray</code>? or <code>String</code>?</p>
  <p>How can I estimate the memory cost, so that can I set the java heap size appropriately? Would 256mb be enough?</p>