Java data storage methods
<p>I'm currently writing a client-server application to allow the client to request data from the server. I'm looking at writing this entirely in native java, and i'm using text and property files to do the bulk of my storage.</p>

<p>However, I've hit a brick wall trying to find a good way to store the following:</p>

<pre><code>ID    Language from    Language to    Cost/100w    Comment
7101    English    Mandarin    $5.00    Outsource
</code></pre>

<p>Now you may be thinking, why doesn't he just use an arraylist, or just store the data in another text file? I've considered these options and I see downfalls with each. </p>

<p>With an arraylist to my knowledge I cannot store integers, and I'd like to query the data with the following command:</p>

<pre><code>What is the cost of &lt;ID&gt; translation of &lt;integer&gt; words?
</code></pre>

<p>As you can see i'll require the cost to be stored as an integer so I can use it for sums.</p>

<p>With text files I only know how to store the data on a single line, for example:</p>

<pre><code>7101 English Mandarin $5.00 Outsource
7102 Greek Russian $12.00 -
etc. etc. etc. etc. etc
</code></pre>

<p>So I don't know how I could query the data.</p>

<p>Once again, I do not want to end up storing this with MySQL and having to use the JDBC driver, I want the entire application to run in native java.</p>
