- public static void main(String[] args) {
- String randstring="kjncxbf'h][[][.h/\[l[jp[.l[";
- String t=randstring.substring(5);
- System.out.println(t);
- }
复制代码 这段代码为何报出以下错误?- Exception in thread "main" java.lang.Error: Unresolved compilation problem:
- Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
- at com.itheima.add.main(add.java:7)
复制代码 |