Search:

Type: Posts; User: tt52

Search: Search took 0.08 seconds.

  1. Re: Beginner/Intermediate Java Code - NullPointerException and wrong output.

    I think what I'm not understanding is why the the StockList.peek() returns null?

    Shouldn't the list contain Stocks from the buy() method?
  2. Beginner/Intermediate Java Code - NullPointerException and wrong output.

    First off, this IS a homework assignment I have been working on.
    I believe I'm close to finishing but can't seem to figure out this small bit.

    The input:


    The output should be $1070 (using...
Results 1 to 2 of 2