摘要: 1 定义三个方法:getArea()求面积、getPer()求周长,showAll()分别在控制台输出长、宽、面积、周长。 package ydy3; public class test3{ int length; int width; public static void main(String[ 阅读全文
posted @ 2020-04-22 10:14 大元128 阅读(93) 评论(0) 推荐(0) 编辑