Trying to call this function. Point being it adds an object called carNew into an array and increases total by 1. Then returns a "true" that can print out a success message.
Code:
boolean ok = CarShowRoom.add(carNew);
Code:
public boolean add(Car carIn)
{
if ( !isFull(total) ){
cars[total] = carIn;
total++;
}
else{
return false;
}
return true;
}
Not sure what other info you need. Just ask.
Thanks