摘要: BigInteger类的方法 * divide(BigInteger val) 返回其值为 (this / val) 的 BigInteger。 multiply(BigInteger val) 返回其值为 (this * val) 的 BigInteger。 subtract(BigInteger 阅读全文
posted @ 2018-04-19 21:16 star521 阅读(124) 评论(0) 推荐(0) 编辑
摘要: ‘ 1 package integer; 2 3 public class IntegerDemo1 { 4 public static void main(String[] args) { 5 6 Integer i1 = new Integer(128); 7 Integer i2 = new 阅读全文
posted @ 2018-04-19 19:44 star521 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 类 BigDecimal 构造方法 BigDecimal(double val) 将 double 转换为 BigDecimal,后者是 double 的二进制浮点值准确的十进制表示形式。 方法 divide(BigDecimal divisor) 返回一个 BigDecimal,其值为 (this 阅读全文
posted @ 2018-04-19 17:27 star521 阅读(110) 评论(0) 推荐(0) 编辑
摘要: Date类 * Date方法 * getTime() 返回自 1970 年 1 月 1 日 00:00:00 GMT 以来此 Date 对象表示的毫秒数。 * setTime(long time) 设置此 Date 对象,以表示 1970 年 1 月 1 日 00:00:00 GMT 以后 time 阅读全文
posted @ 2018-04-19 17:06 star521 阅读(144) 评论(0) 推荐(0) 编辑
摘要: toCharArray() 字符串转字符数组char[] * indexOf('a') 返回指定字符/字符串第一次出现的索引 * startsWith("a")测定字符串是否以制定字符串开始 * endsWith("ab")测试字符串是否以指定字符串结束 split(String regex) 根据 阅读全文
posted @ 2018-04-19 15:50 star521 阅读(118) 评论(0) 推荐(0) 编辑
摘要: * Character char的包装类 方法: * isLowerCase(char a)是否为小写字母 * isUpperCase(char a)是否为大写字母 * isDigit(char a )是否为数字 阅读全文
posted @ 2018-04-19 15:45 star521 阅读(705) 评论(0) 推荐(0) 编辑
摘要: 1 /* 2 * list接口的三种遍历方式 3 * 4 */ 5 public class ListDemo2 { 6 7 public static void main(String[] args) { 8 List list = new ArrayList(); 9 10 list.add("hello"... 阅读全文
posted @ 2018-04-19 14:23 star521 阅读(410) 评论(0) 推荐(0) 编辑