Code example for JSONArray

Methods: optString

0
        public boolean hasNext() { 
            return index < array.length();
        } 
 
        public String next() {
            return array.optString(index++);
        } 
 
        public void remove() { 
            throw new UnsupportedOperationException();
        } 
    } 
 
}