import java.awt.*; class Ring { public int x, y, r; public Ring(int x, int y, int r){ this.x=x; this.y=y; this.r=r;} public void joonista(Graphics g){ g.setColor(Color.black); g.drawOval(x-r, y-r, 2*r,2*r);}}