检查程序的错误 无法读取 !~!~!
import java.awt.*;import java.applet.*;
public class c2_19 extends Applet
{ public static void paint(Graphics g)
{ double x;
circle cir=new cirle(5.0);
x=cir.area();
g.drawString("圆的面积="+x);
x=cir.perimeter();
g.drawString("圆的周长="+x);
}
}
class circle
{ double r;
final double PI=3.1415926
public circle(double)
{this.r=r);}
double area()
{ return PI*r*r;}
double perimeter()
{ return 2*(this.area()/r)}
}