i have a program where i have to read data from excel file and store them in a database . I am using LinkedHashmap to read each cell as a string and store them. My excel file contains the data:
ID Name Salary
43 paulina 1000
5 christine 2349000
54 laura 12587458
49 jim 45878
In my code I have made the fields for the table by the first row of the excel file and then I have filled the table with the rest of the data using again LinkedHashMap. My question is how in this step I can store the data in the table not the way they are in the file but by ascending IDs. I search that i can do it with TreeMap but how exactly? Could anyone help me?