Most efficient way to store and retrieve data : <p>What is the best way to store data permanently in the code? I have the data e.g.
Roll No. (Unique Key)
Values: Name, DOB, Weight, Height etc.</p>

<p>These are going to be static information and I want to store them as the part of application. While using, I want to load them in hashmap so that I can quickly access any student based on the key (Roll number). The data size can go up to 100K entries.</p>

<p>I tried with enum, e.g.</p>

<pre><code>2015CSE3245(“John”, “1997-08-13”, “73”, “176”);
</code></pre>

<p>Is this the best and most efficient way to store the data? Is there any better way in terms of memory and time to read?</p>
