I have this String from a JSON value:
["1","5","10","15","20"]
I need to get a string array from this string. How do I do that?
You can use gson library like this:
Gson gson = new Gson(); // create gson instance
String[] strArr = gson.fromJson(jsonString, String[].class);
yourstring.split(",")which gives u string array?split()would do it if you're looking for an array consisting of "1", "5", "10", "15", and "20".split()on"\",\""