title: How do you determine size of string array java?
body: <p>How do i read a file and determine the # of array elements without having to look at the text file itself?</p>
  
  <pre><code>String temp = fileScan.toString();
  String[] tokens = temp.split("[\n]+");
  // numArrayElements = ?
  </code></pre>