My problem is basically the following, I have a JSON code that takes the data from a URL, and returns it to me (Values are in Long)
528593
444218
5693595
2466912
2466435
However, it returns this to me in a single variable (in this case, "wtfbo"), and I need to split that into a string for each one to fit the interface I already have. In case, I'm currently using this code
[...]
Iterator<?> it = eat.iterator();
while (it.hasNext()) {
JSONObject dash = (JSONObject) it.next();
Long wtfb10 = (Long) dash.get("teamId");
if(wtfb10==100){
Long wtfbo = (Long) dash.get("summonerId");
String play = (String) dash.get("summonerName");
String ko = wtfbo.toString();
System.out.println(ko);
}}
[...]
Any ideas?
// EDIT: In short, "Long wtfbo" will return 5 different summonerId, but everything in it, I need it to return in 5 different strings, each having a summonerID.