-1

I have a string like :

"\"[\"a\",\"b\", \"c\"]\""

How to convert this to a list of strings

Could you suggest me a nice way of doing it in Java?

Niklas B.
  • 89,411
  • 17
  • 190
  • 222
Mok
  • 277
  • 1
  • 5
  • 15

2 Answers2

1

str.contains("c") does this job. However did not you think to consult String class documentation first?

AlexR
  • 111,884
  • 15
  • 126
  • 200
0

Use contains():

if (str.contains("\"c\""))
Bohemian
  • 389,931
  • 88
  • 552
  • 692