import java.applet.*;
import java.awt.*;
 

public class HelloApplet extends Applet
{
  
// The method that will be automatically called  when the applet is started
     public void init()
     {
 // It is required but does not need anything.
     }
 

// This method gets called when the applet is terminated
// That's when the user goes to another page or exits the browser.
     public void stop()
     {
     // no actions needed here now.
     }
 

     public void paint(Graphics g)
     {
      g.drawString("Hey hey hey",20,20);
      g.drawString("Hello World",20,40);
     }

    public static void main(String args[]) {
        AppletFrame.startApplet("HelloApplet", "Hello", args);
    }

}
