Labo6 源码
Labo6 包com.mycompany.lab06; 公共类MainClass { public static void main(String[] args){ Rectangle r1 = new Rectangle(5, 8); r1.draw(); Rectangle r2 = new Rectangle(8,5); r2.draw(); } }包com.mycompany.lab06; 公共类Rectangle { int width; int height; public Rectangle(int width, int height) { this.width = width; this.height = height; } public void draw(){ for (int i = 0; i < height; i++){ for(i
下载地址
用户评论