\\: to specify a backslash character as a character literal or in a text string : Escape Sequences « Data Type « Java Tutorial






public class MainClass {

  public static void main(String[] arg) {
    System.out.println("\\");
    System.out.println("\\\\");
  }

}
\
\\








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.