Table for escape sequence character : Escape Sequences « Data Type « Java Tutorial






ValueMeaning
\bBackspace
\fForm feed
\nNew line
\rCarriage return
\tTab


public class MainClass{

  public static void main(String[] arg){
     System.out.println("\b"); 
     System.out.println("\f"); 
     System.out.println("\n"); 
     System.out.println("\r"); 
     System.out.println("\t"); 
  }

}








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.