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?
Type: Posts; User: tt52
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?
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...