You can do this using Escape Sequence.
\"
So you will have to write something like this :
String name = "\"john\"";
You can learn about Escape Sequences from here.
You can add escaped double quotes like this: String name = "\"john\"";
You need to escape the quotation marks:
String name = "\"john\"";
Source: Stackoverflow.com