File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Android Security Essentials Live Lessons this week in the Android 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: HashMap
 
Similar Threads
Closing a db connection
LoginBean doesn't compile
howto connect a webservice via a proxy server ?
data mismatch error
Help to retrieve Chinese characters from MS Access