数组简单拆分 public static void main(String[] args) throws JSONException {JSONObject json = new JSONObject();for(int x = 1;x=50;x++) {StringBuilder sb = new StringBuilder();sb.append(x);json.put(sb.toString(),x);}Iterator keys = json.
public static void main(String[] args) throws JSONException { JSONObject json = new JSONObject(); for(int x = 1;x<=50;x++) { StringBuilder sb = new StringBuilder(); sb.append(x); json.put(sb.toString(),x); } Iteratorkeys = json.keys(); int[] arr = new int[json.length()]; int[][] ary = new int[10][10]; for(int x = 0;keys.hasNext();x++) { String key = keys.next(); arr[x] = json.getInt(key); } for(int x = 0,data = 0,num = 0;x