Open up Notepad or DOSedit and type in the following lines exactly as follows:
import java.awt.Graphics ;
public class tutor extends java.applet.Applet
{
public void paint(Graphics g)
{
g.drawString("This is my very first Java Applet .", 100, 100 );
}
}
Save this code as tutor.java within a unique folder or directory. I named my directory tutor to
maintain consistency. This tutor.java file will be compiled
with the JDK tool called javac.
Let's go to find out how to work with the JDK at the DOS prompt. Go to the 4thcup.