上次的题目被打击到了,做个最简单的题目找找自信,阿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;
}
}