Results 1 to 3 of 3
- 03-24-2011, 07:55 AM #1
Member
- Join Date
- Mar 2011
- Location
- Manassas, VA
- Posts
- 14
- Rep Power
- 0
- 03-24-2011, 08:33 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Because you defined your 2d array as only having a single element in the first dimension and you are trying to do things with a second element along that dimension. That first "1" in your declaration of c25k means it only has one element in that dimension (i.e. only c[0][x]), it does not denote the highest index. If you want a second element (i.e. c[i][x]), you need a 2 in that position of your declaration, of course.
- 03-24-2011, 09:34 PM #3
Member
- Join Date
- Mar 2011
- Location
- Manassas, VA
- Posts
- 14
- Rep Power
- 0
Similar Threads
-
Help Array Index out of bounds exception
By star400040 in forum New To JavaReplies: 2Last Post: 12-10-2010, 10:24 PM -
Array Index Out Of Bounds Exception
By manowar689 in forum New To JavaReplies: 3Last Post: 06-18-2010, 11:25 PM -
array Index out of Bounds exception== 0
By Allgorythm in forum New To JavaReplies: 6Last Post: 02-11-2010, 04:02 PM -
Array Index Out of Bounds Exception
By kool001 in forum New To JavaReplies: 1Last Post: 12-03-2009, 07:42 AM -
Array out of bounds exception 20.
By dropt in forum New To JavaReplies: 4Last Post: 09-21-2009, 10:32 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks