Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auctionlist.add(new Auction(auctionlist.size()+1, dog));
- System.out.println("Auction for " + dog.getName() + " has begun");
- }
- public void listAuctions() {
- if (auctionlist.size() == 0) {
- System.out.println("Error: no auctions currently in progress");
- return;
- }
- for (int i = 0; i < auctionlist.size(); i++) {
- String dogName = auctionlist.get(i).getDog().getName();
- System.out.printf("Auction #%d: %s. Top bids: [", auctionlist.size()+1, dogName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement