import java.applet.*;
import java.awt.*;
 
/**
 * The HelloWorld class implements an applet that
 * simply displays "Hello World!".
 */
public class HelloWorld extends Applet
{
	public void paint(Graphics g)
	{
        // Display "Hello World!"
        g.drawString("Hello world!", 50, 25);
        g.drawLine(20, 40, 40,100);
        g.drawOval(10, 40, 30, 50);
        System.out.println("println Applet!");
    }
}