Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    5
    Views
    1,156

    Re: Returning an array of indexes in my program.

    There is a variable with a null value on line 71. Look at line 71 in the your source and see what variable is null. Then backtrack in the code to see why that variable does not have a valid value....
  2. Replies
    5
    Views
    1,156

    Re: Returning an array of indexes in my program.

    Compile and execute it and see what happens.
  3. Replies
    5
    Views
    1,156

    Re: Returning an array of indexes in my program.

    Make the return type for the method be an array and use a return statement with the name of the array:

    public DataType[] returnAnArray() {
    DataType[] theArray = new DataType[theSize];
    ......
Results 1 to 3 of 3