Who's good with Java?
I'm working on putting some geometry figures up on a website for a class that I'm doing. The geometry program is called Cabri and I've done a few things already - all of which have come out working fine.
Today, however, I am working on a new one and get this error message:
"Int 8.0 Not Supported Form
(java.lang.ArrayIndexOutOfBoundsException)"
Any ideas on how to fix this?
Thanks!
~Kim~
Today, however, I am working on a new one and get this error message:
"Int 8.0 Not Supported Form
(java.lang.ArrayIndexOutOfBoundsException)"
Any ideas on how to fix this?
Thanks!
~Kim~
It sounds like something tried to access an array element that did not exist.
Example:
Int[] Scores;
Scores = new int[5] // creates array of 5 integers with elements 0-4
Scores[0]= 10; // Ok
Scores[1]= 15;
Scores[2]= 10;
Scores[3]= 17;
Scores[4]= 8;
Scores[5]= 23; // Runtime error!
Example:
Int[] Scores;
Scores = new int[5] // creates array of 5 integers with elements 0-4
Scores[0]= 10; // Ok
Scores[1]= 15;
Scores[2]= 10;
Scores[3]= 17;
Scores[4]= 8;
Scores[5]= 23; // Runtime error!
Thread
Thread Starter
Forum
Replies
Last Post




