public class Test {
public static void main(String[] args) {
String str1 = "\n\r\\";
System.out.print("str1的长度:"+str1.length());
}
}
// 输出:
//str1的长度:3版权声明:本文为u010442302原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
public class Test {
public static void main(String[] args) {
String str1 = "\n\r\\";
System.out.print("str1的长度:"+str1.length());
}
}
// 输出:
//str1的长度:3