有DJAVA唔係好識呀!!功課黎嫁~~唔該幫幫手啦!!!快~~
//The class circle
class circle {
public double radius;
radius = 1; }
public circle (double r){
this.radius = r; }
public double findArea() {
return radius * radius*3.14; }
問題:
1. Using the class Circle, declare and create an array called list[] to store 2 circles.
2. At creation each circle on list[], set its radius equal to 6.
3. Change the radius of the first circle(in an array) from 6 to 10.
唔該幫下手啦~~THZ...