Please Copy the escaped string and paste is into your code.

Online String Escaping Tool
  • What if we wanted to print a double quote character?
  • The following line would confuse the compiler because it would interpret the second quote as the end of the string

System.out.println ("I said "Hello" to you."); 
  • An escape sequence is a series of characters that represents a special character
  • An escape sequence begins with a backslash character (), which indicates that the character(s) that follow should be treated in a special way

System.out.println ("I said \"Hello\" to you.");