Using java arrays
<p>I have 7 lines of data in a text file (shown below). </p>

<pre><code>name: abcd
temp: 623.2
vel: 8

name: xyz
temp: 432
vel: 7.6
</code></pre>

<p>Using regex, I was able to read this data and I have been able to print it out. Now I need to store this data in some variable. I'm leaning towards storing this data in an array/ matrix. So physically, it would look something like this:</p>

<pre><code>  data = [abcd, 623.2, 8 
          xyz, 432, 7.6]
</code></pre>

<p>So in effect, 1st row contains the first 3 lines, the 2nd row contains lines from 5 to 7. My reason for choosing this type of variable for storage is that in the long run, calling out the data will be simpler - as in: </p>

<pre><code>   data[0][0] = abcd
   data[1][1] = 432 
</code></pre>

<p>I can't use the java matrix files from math.nist.gov because I'm not the root user and getting the IT dept to install stuff on my machine is proving to be a MAJOR waste of time. So I want to work with the resources I have - which is Eclipse and a java installation version 1.6. </p>

<p>I want to get this data and store it into a java array variable. What I wanted to know is: is choosing the array variable the right way to proceed? Or should I use a vector variable (altho, in my opinion, using a vector variable will complicate stuff)? or is there some other variable that will <strong>allow me to store data easily and call it out easily</strong>?</p>

<p>Btw, a little more details regarding my java installation - in case it helps in some way:</p>

<p>OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK 64-bit Server VM (build 1.6.0-b09, mixed mode)</p>

<p>Thank you for your help</p>
