0

I need to put " into a string literal in Java like the followig:

String a = "'"'Some string'"'";

Since google don't handle search request like String java " or String literal java " because of the charcter " I decided to ask about it here.

user3663882
  • 6,957
  • 10
  • 51
  • 92

1 Answers1

0

Use \"

String a = "__HERE_SHOULD_BE_\"Some string__HERE_SHOULD_BE_\"";
Konstantin Yovkov
  • 62,134
  • 8
  • 100
  • 147
Eran
  • 387,369
  • 54
  • 702
  • 768