You also need an HTML file to accompany your applet. Type the following code into a new NotePad document

<HTML>
<HEAD>
<TITLE> A Simple Program</TITLE>
</HEAD>
<BODY>
Here is the output of my program:
</APPLET>
</BODY>
</HTML>  


Save this code to a file called Hello.html.

b. Compile the Source File.
At the prompt, type the following command and press
Return:
javac HelloWorld.java

The compiler should generate a Java bytecode file, HelloWorld.class.