1. Escape character
\ t: Tab
\ n: Enter
\b: Backspace
\ r: Enter
\ ": Double quotation marks
\ \: Backslash (commonly used in the writing of file paths)
The carriage return character in Windows system is actually composed of two symbols, \ r \ n
The return character in the Linux system is \ n
2.break&continue
Break (Jump) statement: The application scope is the selection structure (switch statement) and the loop structure
continue (continuation) statement: Apply to Loop structure
Attention:
- It makes no sense for these two statements to leave the scope of the application, and the compilation will error.
- These two statements exist individually and cannot have statements, because they cannot be executed. General use if judgment.
- The continue statement is to end the loop and go to the next loop.
- The appearance of the designator allows the scopes specified by the two statements to be scoped.
- The break statement is the selection or loop structure in which to jump out.
Jump out of the outer loop with the label (with continue):
A:for (int i = 0; i<3:i++) {//A is the label of the outer loop B: for (int j = 0; J <3; J + +) {
System.out.println ("Hello World"); // Break ; // default bounce inside loop Break A; // jump out of the outer loop }}
[Java Learning note]java The escape character of the basic overview of the language &break&continue