عم أكتب كل شيء صح بس عم يقلي غلط حتى بعد ما نسخنت الجواب من المساعد
وهي الكودpublic class Sayara {
public static final double MAX_FUEL_IN_LITRES =0;
private String carType;
public Sayara(String carType) {
this.carType = carType;
}
public String getCarType() {
return carType;
}
public double getFuelAmount() {
return fuelAmount;
}
private double fuelAmount=MAX_FUEL_IN_LITRES ;
public void refuel(){
fuelAmount=MAX_FUEL_IN_LITRES;
}
public boolean isTankEmpty() {
return fuelAmount == 0;
}
}