Thread: array max num
View Single Post
Old 04-09-2003, 03:17 PM   #3 (permalink)
abc123
bloomberg
 
abc123's Avatar
 
Join Date: Jun 2002
Location: bloomberg
Posts: 263
abc123 is on a distinguished road
Send a message via AIM to abc123 Send a message via Yahoo to abc123
what is getSize() sposed to do? if you just want to loop through the array:

Code:
int ints[] = new int[100];
for(int i = 0; i < ints.length; i++){
   if(ints[i] == ....)
}
you won't get index out of bounds then.
__________________
-- bloomberg.
abc123 is offline   Reply With Quote