摘要: 包装类 装箱 Integer i=new Integer(int i) 参数为基本数据类型 Integer i=new Integer(Stirng str) 参数为基本数据类型的字符串,否则会报异常,例如"a" 拆箱 int i2=i.intValue() 备注: jdk1.5之后支持自动装箱与拆 阅读全文
posted @ 2020-05-31 20:51 幻竹 阅读(113) 评论(0) 推荐(0)
摘要: System 成员方法 long currentTimeMillis() 获取系统毫秒值 void arraycopy(Object src,int srcPos,Object dest,int destPos,int count) 复制数组 StringBuilder 构造方法 StringBui 阅读全文
posted @ 2020-05-31 19:46 幻竹 阅读(115) 评论(0) 推荐(0)
摘要: Date 构造方法 Date d = new Date() 传入当前毫秒值,获取Date对象 Date d=new Date(long date) 传入指定毫秒值,获取Date对象 成员方法 long getTime() 获取毫秒值 ~String toLocaleString()~~ 返回Date 阅读全文
posted @ 2020-05-31 00:08 幻竹 阅读(100) 评论(0) 推荐(0)