Answers for "how to put quotation marks in a string java"

1

quotation marks in string java

System.out.println ("If you need to 'quote' in Java");
System.out.println ("you can use single \' or double \" quote");

\' = '
\" = "
  
/* Example: */
String name = "\"john\"";
Posted by: Guest on June-04-2021

Code answers related to "how to put quotation marks in a string java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language