上次的題目被打擊到了,做個最簡單的題目找找自信,阿Q精神。
public class Rectangle {
public Rectangle(int width, int height) {
this.width = width;
this.height = height;
}
public int getArea() {
return width*height;
}
}
上次的題目被打擊到了,做個最簡單的題目找找自信,阿Q精神。
public class Rectangle {
public Rectangle(int width, int height) {
this.width = width;
this.height = height;
}
public int getArea() {
return width*height;
}
}