I have the following string and would like to convert it to string array

```
String singleArray = "[501]"
String multipleArray = "[1,501,634]"

```

I would like to get `List<String>` from that,
the thing is sometimes it can be a single value
and sometimes it can be multiple value seperate by comma.

I tried to use `Arrays.asList(multipleArray)` but it didn't work.

Any suggestions?