Article View: borland.public.jbuilder.java.language
Article #18848Re: arrays of objects
From: Kevin B
Date: Wed, 08 Apr 1998 00:00
Date: Wed, 08 Apr 1998 00:00
22 lines
1284 bytes
1284 bytes
Thanks John, I'll take a look at this approach. It looks pretty good. Kevin John C. Sinues <sinues@prc.prc.mrms.navy.mil> wrote in article <352B3794.CA9396DD@prc.prc.mrms.navy.mil>... > It sound likes you could use a Hashtable (java.util.Hashtable) which > is like a lookup array. Visually, your data structure would look > something like this: > Hashtable: myObject2 > key1->myObjects1, myObjects2 > key2->myObjects3, myObjects4, myObjects5 > key3->myObjects6 > key4->myObjects7, myObjects8 > > "myObject2" would be defined as a hashtable with its keys (key1, key2, > key3, and key4) being the "pointers" to the objects defined in your > myObjects2 array. The data in your myObjects array are the lookup > value(s) for the keys. > > Hope this helps.
Technical Details
Message-ID:
<01bd62f9$3f123ae0$b2c33081@boylankl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<01bd62ec$0c857a40$b2c33081@boylankl> <352B3794.CA9396DD@prc.prc.mrms.navy.mil>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,d90257f1ce51c897 X-Google-Attributes: gidf74b3,public From: "Kevin B" <boylank@computer.org> Subject: Re: arrays of objects Date: 1998/04/08 Message-ID: <01bd62f9$3f123ae0$b2c33081@boylankl> X-Deja-AN: 342069212 References: <01bd62ec$0c857a40$b2c33081@boylankl> <352B3794.CA9396DD@prc.prc.mrms.navy.mil> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language