The idea is different lots in an auction. I know I need a return statement of type "Lot" however I am not sure what that would be. Here is my code.
public Lot getLot(int lotNumber)
{
int index = 0;
boolean found = false;
while(index < lots.size() && !found) {
Lot selectedLot = lots.get(index);
if(selectedLot.getNumber() == lotNumber) {
found = true;
}
else {
index++;
}
}
if(!found) {
found = false;
}
}