登录
首页 » Java » Counter.java

Counter.java

于 2021-04-27 发布 文件大小:1KB
0 55
下载积分: 1 下载次数: 1

代码说明:

  计数器 找出最大值和最小值并且可以递增(i) Write the Counter class which should have two private instance variables: count and max.Add getters and setters for the two private instance variables. The getter methods should be named getCount() and getMax(), whereas the setter methods should be named setCount(int n) and setMax(int n).Add a toString() method in the Counter class and test this method in the CounterTest class. This could simply display the current values of count and max.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 696518资源总数
  • 104300会员总数
  • 67今日下载