Search:

Type: Posts; User: Norm

Search: Search took 0.17 seconds.

  1. Re: unsorted array list (Exception in thread "main" java.lang.NullPointerException)

    That error message says the program is trying to use an index that is past the end of the array.
    Remember that array indexes range in value from 0 to the array length-1. The valid indexes for an...
  2. Re: unsorted array list (Exception in thread "main" java.lang.NullPointerException)

    To see what is in an array, use the Arrays class's toString() method with println():
    System.out.println("an ID "+ java.util.Arrays.toString(theArrayName));

    Print out the contents of the list...
  3. Re: unsorted array list (Exception in thread "main" java.lang.NullPointerException)

    Look at the code on line 55. What variable on that line has a null value? Then backtrack to see why that variable does not have a valid value.
Results 1 to 3 of 3