Searching through large list of ordered strings
<p>Right now as part of my android app I have a .csv file that contains aobut 15,000 lines stored on the sd card of the phone. Every time my app launches it reads in those 15,000 lines into two parallel arrays. I do this for 3 files so in total I have 6 arrays storing 15,000 elements each. I need to search through these items quickly while maintaining order.</p>

<p>I'm worried if I keep the code the way it is I'm going to start running out of memory on phones and having the app crash. Would it be faster just to search through the csv file using <code>readline</code> instead of reading the entirety of each array into array lists so I don't run into memory issues? Is there a better way to do this while maintaining order?</p>

<p>The content on the SD card is in the following form:</p>

<pre><code>New York, test1
New Jersey, test2
Colorado, test3
Arkansas, test4
New York, test5
etc..
</code></pre>
