Re: Test If Int Has Not Been Set
- From: Thomas Weidenfeller <nobody@xxxxxxxxxxxxxxxx>
- Date: Thu, 26 Oct 2006 10:27:25 +0200
Patricia Shanahan wrote:
3. Use a separate boolean array, the same length, and set the boolean at
an index to true when you set the int with the same index.
Or use a bit set to the same effect.
4. Structure your logic so that you only attempt to set each element once.
5. Don't use an integer array - assuming your algorithm produces a sparse vector. If this is the case consider a map with the index becoming the key.
/Thomas
--
The comp.lang.java.gui FAQ:
http://gd.tuwien.ac.at/faqs/faqs-hierarchy/comp/comp.lang.java.gui/
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
.
- References:
- Test If Int Has Not Been Set
- From: dimo414
- Re: Test If Int Has Not Been Set
- From: Patricia Shanahan
- Test If Int Has Not Been Set
- Prev by Date: Re: load properties from xml into objects
- Next by Date: Re: i cant seem to figure something simple out
- Previous by thread: Re: Test If Int Has Not Been Set
- Index(es):
Relevant Pages
|