Their is two way to compile and use the handle reduction program :
1) As an applet :
javac HandleReductionApplet.java
open handleApplet.html in a web-browser
2) An an application :
javac HandleRedutionMain.java
java HandleReductionMain