APPLETS

7. Create an applet in Java to draw a 4 concentric circles.

            import java.applet.Applet;
            import java.awt.Graphics;
            
            public class MyApplet5 extends Applet
            {
               public void paint(Graphics g)
                {
                           g.drawOval(160, 200, 40, 40);
                           g.drawOval(150, 190, 60, 60);
                           g.drawOval(130, 170, 100,100);
                           g.drawOval(100, 150, 150, 150);
                 }
            }
            /*<applet code="MyApplet5.class" width="500" height="500"></applet>*/
            
        

OUTPUT

4concentric circles