Use escape character
String name = " use backslash in front of the quotation like: \" "; String str = " hello \"lautturi\" ";