Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    30
    Views
    2,226

    Re: Need help with creating method for Array.

    Using a "global" for passing and returning values from methods is not the way to it.
    Have the method return the array of Strings that it creates.
  2. Replies
    30
    Views
    2,226

    Re: Need help with creating method for Array.

    The whole array is referenced by using the name of the array without the []s
  3. Replies
    30
    Views
    2,226

    Re: Need help with creating method for Array.

    Consider how the for loop works. The i++ part increments i, the i < list.length part ends the loop when i gets too big.
    When the loop ends, i is past the end of the array.

    Why do you want the...
  4. Replies
    30
    Views
    2,226

    Re: Need help with creating method for Array.

    The terminating condition in the for loops should NOT use hardcoded numbers for going through arrays.
    They should use the length field of the array to get the array's size.
  5. Replies
    30
    Views
    2,226

    Re: Need help with creating method for Array.

    Check to make sure that the storedList() method is defined to return an array.
  6. Replies
    30
    Views
    2,226

    Re: Need help with creating method for Array.

    Could you be more explicit and give the name of "this array" and the name of "this method"?

    The compiler does not think "this array" is an array.
  7. Replies
    30
    Views
    2,226

    Re: Need help with creating method for Array.

    What happened to the text of the error message. There should be separate lines for lots of it. Parts of the message are missing like the source line and the line number. Without the source lines...
  8. Replies
    30
    Views
    2,226

    Re: Need help with creating method for Array.

    Please copy the full text of the error messages and paste it here. Not an image, the text.
Results 1 to 8 of 8