Which is the fastest structure for processing integers(add,read from thousands of nodes)
<p>I am trying to find out which structure would be the fastest, because i have a problem with my code. I have a large amount of data to store. Maybe thousands of nodes are needed. My first thought was to create an ArrayList and then i started adding integers to use them  later. This ArrayList will be useful for fast accessing bytes in Random Access Files. So, i put the first node, which represents a pointer to the first entry in a Random Access File. Then, i put the second, at the same way, and so on..</p>

<p>My program takes too long when putting the integers in the ArrayList. 
Could i fix my code using a faster structure??</p>
