[SOLVED]How to output a sentence having quotation marks in it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

[SOLVED]How to output a sentence having quotation marks in it?

EDIT : THE PROBLEM IS SOLVED Is there a way out besides using double apostrophe?:)

28th Mar 2017, 4:58 PM
Alex Snaidars
Alex Snaidars - avatar
1 Answer
+ 22
Use \" as the following example: System.out.println("Alexander said, \"Hello world!\"");
28th Mar 2017, 5:02 PM
Shamima Yasmin
Shamima Yasmin - avatar