Character Escape Sequences : Escape Sequences « Data Type « Java Tutorial






A backslash indicates the start of an escape sequence.

An escape sequence for a Unicode character: adding '\u' in front of the code

Website for unicode http://www.unicode.org/

public class MainClass{

  public static void main(String[] arg){
     char myCharacter = '\u0058';
     
     System.out.println(myCharacter);
  }

}
X








2.35.Escape Sequences
2.35.1.Table for escape sequence character
2.35.2.Character Escape Sequences
2.35.3.\\: to specify a backslash character as a character literal or in a text string
2.35.4.Convert lines into the canonical format, that is, terminate lines with the CRLF sequence.
2.35.5.Returns the quoted version of the string using the quotechar argument.
2.35.6.Determines if this is a quoted argumented - either single or double quoted.