Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    11
    Views
    1,196

    [SOLVED] Re: Im not sure whats wrong with my code

    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...
  2. Replies
    11
    Views
    1,196

    [SOLVED] Re: Im not sure whats wrong with my code

    Please copy the full text of the error message and paste it here.

    Are there two temps? One an array[] and one a method()?
  3. Replies
    11
    Views
    1,196

    [SOLVED] Re: Im not sure whats wrong with my code

    What type of Objects go in temp? You should use the equals() method to compare many objects instead of the == operator.
  4. Replies
    11
    Views
    1,196

    [SOLVED] Re: Im not sure whats wrong with my code

    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...
  5. Replies
    11
    Views
    1,196

    [SOLVED] Re: Im not sure whats wrong with my code

    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...
Results 1 to 5 of 5