Search:

Type: Posts; User: pbrockway2

Search: Search took 0.07 seconds.

  1. Re: Reverse the order of Strings in an ArrayList?

    System.out.println() - the poor man's debugger - to the rescue again...

    Have a look at what your loop is doing:



    System.out.println("About to start loop");
    for(int i = n; i == 0; i--)
    {
    ...
  2. Re: Reverse the order of Strings in an ArrayList?

    OK. So reverseArray is null - that is it has not been assigned a value yet. And you cannot call a method like toString() on something that doesn't exist.

    You can test this claim (that...
  3. Re: Reverse the order of Strings in an ArrayList?

    Which is line 27 of Purse.java? The runtime exception is saying that you are using a variable here that is null.
Results 1 to 3 of 3