1.占位符的使用
String domain = “www.baidu.com”;
int iVisit = 0;
System.out.println(String.format(“该域名%s被访问了%s次.”, domain , iVisit));
2.转义分隔符
String a = “2+1-2-3/4”;
if (a.contains("+")) {
String []c = a.split("\+");
System.out.println(Arrays.toString©);
}