Java Applet Program to draw and fill Arcs

Write a Java applet program to draw and fill arcs.



Source Code
import java.awt.*;
import java.applet.*;

public class DrawArcs extends Applet 
{
	public void paint(Graphics g) 
	{
		g.drawArc(10, 40, 70, 70, 0, 75);
		g.fillArc(100, 40, 70, 70, 0, 75);
		g.drawArc(10, 100, 70, 80, 0, 175);
		g.fillArc(100, 100, 70, 90, 0, 270);
		g.drawArc(200, 80, 80, 80, 0, 180);
	}
}
/*
<applet code="DrawArcs" width=300 height=200>
</applet>
*/
Output





"Coding Hub - Learn to code" app now available on Google Play Store