1. Ctrl+Z:回到上一步
Ctrl+Y:回到下一步
2. String xiong = "nengxiaoyuan";
String xxy = xiong.substring(0,8);//提取子串
System.out.println(xxy);
//输出:nengxiao
3. String xiong = String.join("/", "x","i","o","n","g");//定界符
System.out.println(xiong);
//输出:x/i/o/n/g
4. s1.equals(s2);//检测字符串是否相等
s1.equalsIgnoreCase(s2);//不区分大小写
5. String s = "xiong";
if (s != null && s.length()!=0)//首先检查非空
System.out.println("bingo!");
6.
原文:https://www.cnblogs.com/nengxiaoyuan/p/10875207.html