The compiler can not find a method named temp that takes an int for an argument.
Are there two temps? One that is an array (uses:[]) and one a method (uses: ( ))?
Change the ()s to []s on line...
Type: Posts; User: Norm
The compiler can not find a method named temp that takes an int for an argument.
Are there two temps? One that is an array (uses:[]) and one a method (uses: ( ))?
Change the ()s to []s on line...
Please copy the full text of the error message and paste it here.
Are there two temps? One an array[] and one a method()?
What type of Objects go in temp? You should use the equals() method to compare many objects instead of the == operator.
Look at line 42
Find the array that is being indexed on that line
Find the index that is used (the index is inside the []s
See what the value of the index is. Add a println to print it out if you...
At line 42 the index to an array had a value of -1.
The range of values is 0 to the array length-1.
The code needs to keep the value of the index in range. Look at line 42 and see how it got an...