Use of Java escape characters
There are four escape characters in JAVA: 1. octal escape sequence: \ + 1 to 3 5 digits; range: '\ 000 '~ '\ 377' \ 0: NULL Character 2. Unicode Escape Character: \ u + four hexadecimal numbers; 0 ~ 65535 \ u0000: NULL Character 3. special characters: \ ": Double quotation marks \ ': single quotation marks \: backslash 4. control Character: \ r press enter \ n newline \ f take the paper for another page \ t horizontal hop grid \ B escape for other points of the UNGE :. ==>\u002e escape of the dollar symbol: $==>\u0024 escape of the square symbol: ^==>\u005e escape of the Left braces: {==>\u007b escape of left square brackets: [==>\u005b escape of left parentheses :( ==>\u0028 vertical line: | ==>\u007c escape of the right parentheses :) ==>\u0029 asterisks escape: * ==>\u002a + escape: + ==>\u002b question mark escape :? ==>\ U003F System. out. println ("\ u0024"); // Print $ String str3 = "a $ B $ c"; String strs [] = str3.split ("\ u0024 "); // \ u0024 is used to indicate $. Otherwise, an error is returned. For (String str: strs) {System. out. println (str); // print a, B, c}