This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
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!