Associating HashMap values with items in a List

D

da_rod_father

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
 
R

Robert Klemme

da_rod_father said:
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? :)

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
 
R

Roedy Green

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? :)
have a look at the source code for http:mindprod/products1.html#INI
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top