Add a getUnsold method to the Auction class with the following header:
public ArrayList
This method should iterate over the lots field, storing unsold lots in a new ArrayList local variable. What you are looking for is Lot objects whose highestBid field is null. At the end of the method, return the list of unsold lots
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.