摘要: 方法1: 1、Fruit.java 1 /** 2 * 水果的枚举类 3 * @author Administrator 4 * 5 */ 6 public enum Fruit { 7 //apple调用有两个参数的构造,构造可以跟匿名内部类 8 apple(6,3){ 9 public Stri 阅读全文
posted @ 2016-05-27 13:36 红酒人生 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 一、时间 1.1 使用Calendar/[ˈkæləndɚ]/类获取时间 1.1.1 常用方法 (1)public static Calendar getInstance(): 使用默认时区和语言环境获取一个基于当前时间的Calendar对象。 (2)public int get(int field 阅读全文
posted @ 2016-05-27 13:28 红酒人生 阅读(550) 评论(0) 推荐(0) 编辑