public class Car { public static final char DEFAULT = '*'; public static final char SMOKE = '.'; public static final int EMPTY = 0; public static final int FULL = 10; private char appearance = DEFAULT; private int fuel; public Car() { appearance = DEFAULT; fuel = FULL; } public Car(char newAppearance, int newFuel) { this(); setAppearance(newAppearance); setFuel(newFuel); } public void setAppearance(char newAppearance) { appearance = newAppearance; } public void setFuel(int newFuel) { fuel = newFuel; } public void useFuel() { fuel--; } public String toString() { String s = ""; s = s + appearance; return(s); } }