Code example for JSONArray

Methods: getInt

0
        } 
    } 
     
    static public int getIntElement(JSONArray a, int i, int def) {
        try { 
            return a.getInt(i);
        } catch (JSONException e) {
            return def;
        } 
    } 
     
    static public void append(JSONArray a, JSONObject element) {
        try { 
            a.put(a.length(), element);
        } catch (JSONException e) {
        } 
    } 
     
    static public void append(JSONArray a, Object element) {
        try { 
Contextual code suggestions in your IDE  Get Codota for Java