Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

Associating HashMap values with items in a List

Thread view: 
da_rod_father - 14 Feb 2006 13:21 GMT
Hi, I am iterating through a text file(property file) and storing the
section headers as items in a List.  I want to associate specific
property value pairs( that I plan to put in a HashMap) with each
section header in my List, i guess you waould say its kinda of like a
parent child realtionship.  I am looking for some guidance in the right
direction on how to properly do this or is this not the way I should be
thinking of the solution?  Please let me know? :)  

Thanks
Robert Klemme - 14 Feb 2006 13:35 GMT
> Hi, I am iterating through a text file(property file) and storing the
> section headers as items in a List.  I want to associate specific
[quoted text clipped - 3 lines]
> right direction on how to properly do this or is this not the way I
> should be thinking of the solution?  Please let me know? :)

From what you write the most natural seems to have a map with section
names as keys and secondary maps as values (these contain the property
info).

   robert
Roedy Green - 14 Feb 2006 19:02 GMT
>Hi, I am iterating through a text file(property file) and storing the
>section headers as items in a List.  I want to associate specific
[quoted text clipped - 3 lines]
>direction on how to properly do this or is this not the way I should be
>thinking of the solution?  Please let me know? :)
have a look at the source code for http:mindprod/products1.html#INI
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.