0

I have a string in java.

String textQualifier;

I want to assign it the value " how can I do it in java. I tried searching but couldn't find anything.

AhmedRana
  • 438
  • 8
  • 20

1 Answers1

1

As said before. In order to adding some chars like " to an string those must be escaped

Example:

String myString = "\"";

Note the use of the escape sign \ here...

Now your string is assigned correctly...

Community
  • 1
  • 1
ΦXocę 웃 Пepeúpa ツ
  • 45,713
  • 17
  • 64
  • 91