circle and line using java
import java.util.*; import javax.swing.JFrame; import java.lang.*; import java.awt.*; import java.util.Scanner; class Demo1 extends Canvas { int x, y; public void paint(Graphics g) { Circle(g,50,500,200); Circle(g,8,445,200); Circle(g,8,555,200); Circle(g,8,470,180); Circle(g,8,530,180); Smile(g,40,500,200); line(g,500,170,500,220); line(g,500,250,500,600); line(g,600,400,500,300); line(g,400,400,500,300); line(g,600,600,500,500); line(g,500,500,400,600); } public void line(Graphics g,int x0,int y0,int x1,int y1) { int dx,dy; float Xinc,Yinc,x,y,steps; dy=y1-y0; dx=x1-x0; ...