aspose file tools*
The moose likes Beginning Java and the fly likes HashMap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

HashMap

Enkita mody
Ranch Hand

Joined: Aug 06, 2012
Posts: 333



---------- java ----------
Bru
Nescafe
6
3
Connection closed

Output completed (1 sec consumed) - Normal Termination

Here i've to declare two separate HashMap objects to store and iterate individually.How could i do in one HashMap ?
Thanks


OCA7
Phil English
Ranch Hand

Joined: Jun 18, 2012
Posts: 62

Could you create a new order class which has type and quantity fields? You could then create order objects and then place these into a hashmap?
Enkita mody
Ranch Hand

Joined: Aug 06, 2012
Posts: 333

Phil English wrote:Could you create a new order class which has type and quantity fields? You could then create order objects and then place these into a hashmap?


Yes,it worked.Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HashMap