import javax.microedition.lcdui.*;
class Canvas3 extends Canvas {
  public void paint (Graphics g) {
     // clean the display
     g.setGrayScale (255);
     g.fillRect (0, 0, getWidth (), getHeight ());

     // draw the dotted lines
     g.setGrayScale (0);
     g.setStrokeStyle(Graphics.DOTTED);
     g.drawLine (getWidth()/2, 0, getWidth()/2, getHeight());
     g.drawLine (0, getHeight()/2, getWidth(), getHeight()/2);

     // draw the red arcs with solid lines
     g.setStrokeStyle(Graphics.SOLID);
     g.setColor(255, 0, 0);
     g.drawArc(20,40,80,80,0,240);
     g.drawArc(140,40,80,80,90,240);
     g.drawArc(30,160,60,110,0,360);
     g.fillArc(140,170,80,80,0,110);
  }
}


