APPLETS

10. Create an applet in Java to draw a arc.

            import java.applet.Applet;
            import java.awt.Graphics;
            
            public class MyApplet8 extends Applet
            {
               public void paint(Graphics g)
                {
                          g. drawArc(200, 200, 100, 100, 150, 150);
                 }
            }
            /*<applet code="MyApplet8.class" width="500" height="500"></applet>*/
            
        

OUTPUT

 an arc