[SOLVED]How to output a sentence having quotation marks in it? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grátis
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 Resposta
+ 22
Use \" as the following example: System.out.println("Alexander said, \"Hello world!\"");
28th Mar 2017, 5:02 PM
Shamima Yasmin
Shamima Yasmin - avatar