Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collection - HashMap ?

 
kri shan
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic