package yesido;
public class TestTen {
public static void main(String[] args)
{
TestTen ten = new TestTen();
Circle c =new Circle();
ten.PassObject(c,5);
}
class Circle{
double radius;
public double findArea()
{
double s=Math.PI*radius*radius;
return s;
}
public void PassObject(Circle c,int time)
{
for(int i=1;i<=time;i++)
{ c.radius=i;
c.findArea();
System.out.println("半径="+c.radius+"/t/t"+c.findArea());
}
}
}
}