1. 首页
  2. 移动开发
  3. 其他
  4. Labo6 源码

Labo6 源码

上传者: 2021-04-05 14:18:03上传 ZIP文件 2.9KB 热度 15次
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
下载地址
用户评论