1. 首页
  2. 数据库
  3. 其它
  4. 09_02_Polygon mdstudentnew:09_02_Polygon mdstudentnew由GitHub Classroom创建 源码

09_02_Polygon mdstudentnew:09_02_Polygon mdstudentnew由GitHub Classroom创建 源码

上传者: 2021-04-19 12:37:38上传 ZIP文件 98.44KB 热度 17次
多边形实验室 多边形 在Polygon类中,添加一个整数边长的private ArrayList 。 将方法添加到: // put the given side in the list public void addSide(int theSide) // return the number of sides in the list public int getNumSides() // return the side at the given index public int getSide(int index) // add up all the sides and return the value public int getPerimeter() // return true only if all sides are the same length public boolea
下载地址
用户评论