Clearly mark each as valid or invalid. Clearly mark each as valid or invalid. Add a method removeHalf to Tank that would remove half of the content of the tank. If the tank is empty, nothing should happen when this method is called. Integer is a simple type in Java.
Applets can run using the java command from the unix prompt like a regular application program.
You should know that upon construction, a trafficLight has its red light on. Suppose, we want to write an applet that has a trafficLight . Remeber that this is being done in the applet, not the trafficLight class.