APPLETS

2. Create an applet showing the string "Hello World" which is executed by an appletviewer.

            import java.awt.*;
            public class HelloWorld extends Applet{
                public void paint(Graphics g)
                {
                    g.drawString("Hello World!", 100, 100);
                }
            }
            /*
             
        

OUTPUT

HelloWorld */