Hi. Im trying this java program that's suppose to register the "staff"'s "car" and there's this boolean method that I don't know how to solve.
There are 3 classes: Tester, Staff and Car.
the boolean part is suppose to check if the staff has 1 or 2 cars registered and if it is null then assign car object to staff's Car.
public boolean registerCar(Car car, String stickerNum) {
if(car.getOwnerId() != null){
//not sure how to continue
}
return false;
}
if anyone is kind enough to help me out, much appreciated. thanks