If this still does not work, please download the package TrafficLights.zip and unzip it
go into the folder and input commands: "javac *.java" and then "appletviewer TrafficLights.html"