[I am trying to print the output of lot.getHighestBid, which is just a number but for whatever reason, it prints the reference number @234lln. What is wrong with my code?
public void close() { for(Lot lot : lots){ Bid bid = lot.getHighestBid(); if(bid != null) { System.out.println("Sold to: " + lot.getHighestBid().getBidder().getName() + " for: " + lot.getHighestBid() ); } } }
--- Update ---
Never mind. Mods could close this thread or remove it. I just found out after hours of scratching my head that I should use lot.getValue() method.