| Author |
Collection - HashMap ?
|
kri shan
Ranch Hand
Joined: Apr 08, 2004
Posts: 1303
|
|
How to store all three arrays(String array, float array and int array) as HashMaps values ? (or) three different lists instead of arrays. Any other effiient way to return all 3 array values ?
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14685
|
|
|
Why not making a class called Employee, with a name, a salary and an age ? You could then instanciate each employee from the resultset, put it in a List<Employee> and return it. I don't think you need to use HashMap here.
|
[My Blog]
All roads lead to JavaRanch
|
 |
 |
|
|
subject: Collection - HashMap ?
|
|
|