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
  • 486
  • 9
  • 22

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 ツ
  • 47,427
  • 17
  • 69
  • 97