class Cricle
{
private static double pi=3.14;
private double radius;
public Circle(double r)
{
radius=r;
}
public static double compare(Circle[] cir)
{
//程序代码
}
}
class TC
{
public static void main(String[] args)
{
Circle cir[]=new Circle[3];
cir[0]=new Circle(1.0);
cir[1]=new Circle(2.0);
cir[2]=new Circle(4.0);
System.out.println(“最大的半径是: ”+Circle.compare(cir));
}
}
//求积分,どうも、ありがとう!:) |