This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Using Arraylist to store multiple values for single key in a Map Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Using Arraylist to store multiple values for single key in a Map" Watch "Using Arraylist to store multiple values for single key in a Map" New topic
Author

Using Arraylist to store multiple values for single key in a Map

Eghe Urhos
Greenhorn

Joined: Sep 03, 2003
Posts: 5
I trying to store items under names as keys in a map and store the titles in arraylist, and the Arraylist is stored as values to the keys.
While storing the titles I want to skip those with (TV).
After storing the items I would like to comapre the keys with first char in title for a match before display all titles that have name.
I would apprecaite any assistance in this regard.
Thanks.
Below is my code


[ September 30, 2003: Message edited by: Cindy Glass ]

egheurhos
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Arraylist to store multiple values for single key in a Map
 
Similar Threads
why there are two interfaces in java for sorting Purpose?
Avioiding memory error
Question about HashSet
JOINED strategy not sufficient?
Page 569-571 : Formatting output AND making program in book (Generics and collections)