• Post Reply Bookmark Topic Watch Topic
  • New Topic

reading a file to hashtable  RSS feed

 
S Shehab
Ranch Hand
Posts: 492
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,
i got a file contains data like this :

Sherif 200801 63.5 54.4 77.6 82.4
shehab Zhou 200902 61.3 73.8 79.5 68

these are names and their IDs and scores , i need to read this file in a 2 hashtables one contains key = the IDs value = the score after rounding them to nearest integer
second key= Ids value = names , any ideas ?
 
Campbell Ritchie
Marshal
Posts: 56570
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create an Object with the name and score in as the value, and use the ID as the key.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!