u can use java.util.HashMap, that is storing dat in pairs( like (key,value) ).
if u will need some sorting, i would recommend to use java.util.TreeMap.

Don't take life serious 'cause you'll never get out of it alive.

---------- Original Message -----------
From: "Repine, Burt" <[EMAIL PROTECTED]>
To: "JDJList" <[EMAIL PROTECTED]>
Sent: Thu, 29 Aug 2002 12:08:19 -0700
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
------- End of Original Message -------


Counter Strike server
http://cs.idilis.ro


To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to