1.  Ctrl+Z:回到上一步

   Ctrl+Y:回到下一步

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

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.

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄