| Author |
Which java Collections Shall i Use?
|
Imran Akbar
Ranch Hand
Joined: May 06, 2010
Posts: 63
|
|
i have a requirement,
lets say i need to maintain a list of slots which have a key from 00 to 99, and it will contain another value called id, when a request comes i select 00 key first and allocates a id, likewise when i get the response back i will remove the allocated id and make it null, when some request comes in i want to get the available slot and insert the id on the available slot
tell me which collections should i go with or do i need to create a new data structure for this?
|
 |
Gopi Chella
Ranch Hand
Joined: Apr 26, 2010
Posts: 52
|
|
|
HashMap will be good for Key/Value pair.
|
SCJP 1.5
|
 |
 |
|
|
subject: Which java Collections Shall i Use?
|
|
|