Commonly used escape characters in Java
1) \t: a tab stop, which realizes the alignment function
2) \n newline character
3) \: a \ (the first \ means escape, and the second \ means the output character)
\\: Output two \ (the first \ means escape, the second \ means the output character, the third \ means escape, and the fourth \ means the output character), so the output \ is written as \ \
4)": a "
5)': a'
6) \r: a carriage return System.out.println("My motherland\rChina");
7) \r: carriage return line feed
In the console, enter the tab key to achieve command completion
Classroom exercise:
Requirement: Please use an output statement to achieve the effect of entering the following graphics