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,497
  • 9
  • 44
  • 85

1 Answers1

0

Use \"

String a = "__HERE_SHOULD_BE_\"Some string__HERE_SHOULD_BE_\"";
Konstantin Yovkov
  • 60,548
  • 8
  • 97
  • 143
Eran
  • 374,785
  • 51
  • 663
  • 734