\t:一个制表位,实现对齐的功能
\n:换行符
\\:一个\
\":一个"
\':一个'
\r:一个回车
public class EscapeChar {
public static void main(String[] args) {
System.out.println("Beijing\tShanghai\tShenzhen");
System.out.println("First line\nSecond line");
System.out.println("D:\\javacode");
System.out.println("Leo say: \"Java is great!\"");
System.out.println("Leo say:\'Java is great!\'");
System.out.println("PHP is best!\rJava");
System.out.println("PHP is best!\r\nJava");
}
}