It sounds like you should check out java.util.HashMap.
> -----Original Message----- > From: Repine, Burt [mailto:[EMAIL PROTECTED]] > Sent: 29 August 2002 20:08 > To: JDJList > Subject: [jdjlist] Dealing with generic pairs of data > > > > I have a very simplistic requirement but a problem in trying to > > determine the best object to use to satisfy it. I need to pass a > > collection of pairs of data between objects and want to > maintain the > > association between the pairs. There is no order to the pairs. When > > extracting the data I merely want to iterate through whatever the > > object may be and pull out each pair of data. > > > > The data would be represented something like the following > and I have > > a need to store null: > > > > String String > > String String > > String null > > String null > > String null > > > > I've been back and forth through various texts, the Sun API > and fellow > > employees without being able to decide upon the best > scenario yet. Any > > help would be appreciated. > > > > Thank you! > > > > > > To change your JDJList options, please visit: > http://www.sys-con.com/java/list.cfm > To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm
