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.

creating parent/child realtionships with objects in an ArrayList

Thread view: 
da_rod_father - 02 Feb 2006 16:01 GMT
Hi, I am looking for some direction.  I am reading a file then storing
the contents in an ArrayList.  I want to be able to associate certain
objects with specific data.  Such as an object of "section headers" or
"section labels" with its perspective object of data associated with
that particular "section headers".  I am a newbie and cannot really
find any info on this.  Could someone please point me in the right
direction?  :)
opalpa@gmail.com opalinski from opalpaweb - 02 Feb 2006 16:30 GMT
Check out java.util.HashMap.

Opalinski
opalpa@gmail.com
http://www.geocities.com/opalpaweb/
none - 02 Feb 2006 22:41 GMT
> Hi, I am looking for some direction.  I am reading a file then storing
> the contents in an ArrayList.  I want to be able to associate certain
[quoted text clipped - 3 lines]
> find any info on this.  Could someone please point me in the right
> direction?  :)

Have you thought about using xml instead of a text file? it might be
easier and more flexible to map java objects to xml elements.

Tim
da_rod_father - 03 Feb 2006 15:47 GMT
> > Hi, I am looking for some direction.  I am reading a file then storing
> > the contents in an ArrayList.  I want to be able to associate certain
[quoted text clipped - 8 lines]
>
> Tim

Sounds good, the text files are properties files and dont think that
will change.  Will it still be easier and flexible if I convert the
text into xml and maybe use jaxb?
da_rod_father - 03 Feb 2006 15:48 GMT
> > Hi, I am looking for some direction.  I am reading a file then storing
> > the contents in an ArrayList.  I want to be able to associate certain
[quoted text clipped - 8 lines]
>
> Tim

Sounds good, the text files are properties files and dont think that
will change.  Will it still be easier and flexible if I convert the
text into xml and maybe use jaxb?


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



©2008 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.