string - assigning special characters such as " in java -


How do I specify this string in Java string?

  & lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 Transcription // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  

thanks

  String S =" & lt ;! DOCTYPE HTML Public \ "- // W3C // DTD XHTML 1.0 Transcription / N \" \ "http://www.w3.org/TR/xhtml1 /DTD/xhtml1-transitional.dtd\">, ";  

i.e. Replace with " letters containing form, \"


Comments