+ 2
String
How to create a string containing double quotes between double quotes?
5 odpowiedzi
+ 11
use backward slash before double quotes,
String str="hi \"welcome\"";
+ 6
@david Thanks for your reply
+ 5
@Silambarasan T If you want to be really picky about details, \ is a backslash and / is a forward slash 😎
+ 4
To include both sets of quotes in the string you would need
str="\"hi \"welcome\"\"";
0
Print(" \"hello\" ")