Telling us *specifically* you're trying to do is also helpful--it's hard for us to guess your intent. I will say, however, that any code that writes to an array of bounded length without checking the index before writing is likely to break.
prasanth miriyala
Greenhorn
Joined: May 01, 2009
Posts: 5
posted
0
David Newton wrote:"[...] its comes up with an error" is not actually a helpful diagnostic. Telling us *what* the error is makes it much, *much* easier to help.
Telling us *specifically* you're trying to do is also helpful--it's hard for us to guess your intent. I will say, however, that any code that writes to an array of bounded length without checking the index before writing is likely to break.
my apologies my problem is when I'm trying to assign the value to an array (x[points] = x;) at line 16 and line 17 its giving me an error in ecllipse;
error: The type of the expression must be an array type but it resolved to int.
John de Michele
Rancher
Joined: Mar 09, 2009
Posts: 600
posted
0
Prasanth:
I see what the error is. Look at the variables in your mouseDown() and mouseUp() methods, and compare them to your array variables. That's where the problem lies.