摘要: Collection树形图Collection 接口 |--List 接口,继承Collection |--ArrayList --- implement List ... 阅读全文
posted @ 2017-04-03 13:45 2637282556 阅读(136) 评论(0) 推荐(0) 编辑
摘要: System不能被实例化:常用方法:public static void gc():运行垃圾回收器。 具体什么时候回收有算法决定。public static void exit(int status) status=0终止当前正在运行的 Java 虚拟机。非0异常终... 阅读全文
posted @ 2017-04-03 12:12 2637282556 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Random:产生随机数 public Random():没有给种子,用的是默认种子,是当前时间的毫秒值, public Random(long seed):给出指定的种子, 等价于new Random().setSeed(seed); public int next... 阅读全文
posted @ 2017-04-03 12:07 2637282556 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Math:用于数学运算的类。参数大多为double或者float类型成员变量:public static final double PI 3.141592653589793public static final double E 2.718281828459... 阅读全文
posted @ 2017-04-03 11:21 2637282556 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1Calendar常用方法:int get(int field) 返回给定日历字段的值。 static Calendar getInstance() 使用默认时区和语言环境获得一个日历。 static int YEAR 指示年的 get 和 set 的字... 阅读全文
posted @ 2017-04-03 11:00 2637282556 阅读(225) 评论(0) 推荐(0) 编辑
摘要: BigDecimal:不可变的、任意精度的有符号十进制数,可以解决数据丢失问题。适用于为了能精确的表示、计算浮点数。 常用方法:public BigDecimal add(BigDecimal augend) 加public BigDecimal subtract(B... 阅读全文
posted @ 2017-04-03 02:39 2637282556 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 特点: 线程安全的可变字符串。适用于字符串的拼接,同步,效率低 构造方法public StringBuffer():无参构造方法public StringBuffer(int capacity):指定容量的字符串缓冲区对象public StringBuffer(Str... 阅读全文
posted @ 2017-04-03 01:47 2637282556 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 这里以Integer类型举例: Integer a =1; a +=2;编译后.calss文件是这样的Integer a = Integer.valueOf(1); 自动装箱 a = Integer.valueOf(a.intValue... 阅读全文
posted @ 2017-04-03 01:11 2637282556 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1构造方法public Integer(int value)public Integer(String s)2常用方法 static String toString(int i, int x) 将数字i转为x进制表示的值 static int parseInt(Str... 阅读全文
posted @ 2017-04-03 01:04 2637282556 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 常用的方法:public static boolean isUpperCase(char ch):判断给定的字符是否是大写字符public static boolean isLowerCase(char ch):判断给定的字符是否是小写字符public static ... 阅读全文
posted @ 2017-04-03 00:48 2637282556 阅读(130) 评论(0) 推荐(0) 编辑