Using the Java tools you already have installed (for example, the JDK and a text editor) build a Java applet that draws the text Hello, World! on its surface.
- Compile the applet.
- Write the HTML required to include the applet in a Web page.
- Hint: You should create a new file called HelloWorldApplet.java.
- Load the HTML into a browser and confirm that you see the Hello, World! message.
It should contain the following code:
import java.applet.*;
import java.awt.*;
public class HelloWorldApplet extendsApplet{
public voidpaint(Graphics g) {
g.drawString("Hello, World!",20,20);
}
}