-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.
  • 92,950
  • 18
  • 194
  • 224
Mok
  • 277
  • 1
  • 6
  • 16

2 Answers2

1

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

AlexR
  • 114,158
  • 16
  • 130
  • 208
0

Use contains():

if (str.contains("\"c\""))
Bohemian
  • 412,405
  • 93
  • 575
  • 722