public static void method_7(){ String s = "wqdfghjkuty5r4234trghfbvfdeqtryhjgnbdfeqrt6rgfsdewrtrf"; //调用String类的方法length()获取长度 int length = s.length(); System.out.println(length); } /* * String类的获取方法 * public int lastIndexOf(char ch,int formIndex) * 找指定字符在...