G*********a 发帖数: 1080 | 1 Thanks, but it doesn't work:
javac Hello.java
Hello.java:4: illegal escape character
{ System.out.println("\x1B[31;mHello");}
^
1 error
After changing it into : System.out.println("\\x1B[31;mHello");
it just print out either: \x1B[31;mHello or \x1B[31mHello |
|