1. 首页
  2. 数据库
  3. 其它
  4. #打卡学习##JAVA#记录的第三天

#打卡学习##JAVA#记录的第三天

上传者: 2021-02-01 11:19:47上传 PDF文件 115.78KB 热度 12次
hello 第三天啦 今天也是元气满满的一天呢!!! 今天学习了枚举和常量接口还有加强了对昨天接口的认知! 常量接口 程序当中,需要有直观的含义,可以使用接口常量. 红绿灯示例; interface ITrafficLight{ public static final int RED = 1; public static final int GREEN = 2; public static final int YELLOW = 3; } public static void main(String[] args){ int currentLight = x;
下载地址
用户评论