File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes java data structures Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "java data structures" Watch "java data structures" New topic

java data structures

Keith Lockey
Ranch Hand

Joined: Oct 05, 2001
Posts: 48
I am having trouble deciding how to use java datastructures. For example, I have to pull three fields from a table. The first field has duplicates but it needs to be the key field for the other two fields.
The first field is the name of a database table, and the second and third are the column names of the table, and the data types of the table.
Therefore, I need to make a hashmap that will accept duplicate keys??
Or is there some better way to do this. I wish I had a better handle on when to use certain data structures??

Thanks,<br />Keith
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 986

See if this helps: Click

Please ignore post, I have no idea what I am talking about.
I agree. Here's the link:
subject: java data structures
It's not a secret anymore!