1 System.getProperties().list(System.out); 比 System.out.println(System.getProperties());好,因为自动换行了。形式好看点。
2 Arrays.deepToString() 打印多维数组。
3 System.out.println("1.2".replaceAll(Pattern.quote("."), "X")); 自动为特殊字符做转义。
4 java.util.Collections.nCopies(n, o) 重复对象0的N次COPY的集合。
------------------------