posted 19 years ago
In other words, instead of
I would use:
There are better ways to do this, but this solution at least checks the array bounds to make sure you don't exceed the array length.
[ November 10, 2004: Message edited by: Jeff Bosch ]
Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4 all those years ago...)