public static void fun1() { Date date = new Date(); System.out.println(date.toString()); }
public static void fun2() { String str = "0<col[\"age\"]"; String[] strs = str.split("col[\\\""); System.out.println(Arrays.toString(strs)); for(int i = 1; i < strs.length; i++) { str = strs[i].split("\"]")[0]; System.out.println("Element: " + str); } }
public static void fun2() { String str = "0<col[\"age\"]"; String[] strs = str.split("col\\[\\\""); System.out.println(Arrays.toString(strs)); for(int i = 1; i < strs.length; i++) { str = strs[i].split("\"\\]")[0]; System.out.println("Element: " + str); } }
public static void fun3() { Set<BigDecimal> set = new HashSet<BigDecimal>(); set.add(new BigDecimal(9)); System.out.println(set.contains(9)); System.out.println(new BigDecimal(9) instanceof Number); System.out.println(); Set<Byte> ints = new HashSet<Byte>(); ints.add((byte)9); System.out.println(ints.contains(9)); }
今天的笔记:2014年6月3日,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/KuTeng/p/3766380.html