Vanilla List Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[VANILLA-L:1536] Re: [VANILLA-L:1535] Java question
Bob Tanner <tanner@real-time.com> wrote:
>
> So, how do I step through these arrays without getting an Exception by
> accessing out of bounds on the array?
for (int i = 0; i < my_array.length; i++) {
// Do your thing.
my_array[i];
}
You might have to check to make sure that my_array isn't null,
depending on what sets it.
This is incredibly basic. Get a book or look at a tutorial or
something :>
-Jeff
+
++ Vanilla-l Mailing List ++
To unsubscribe: send "unsubscribe vanilla-l" to majordomo@real-time.com
For more information: http://archives.real-time.com