Logo Search packages:      
Sourcecode: libjson-java version File versions

JSONArray net::sf::json::JSONArray::element ( int  index,
int  value 
) [inline]

Put or replace an int value. If the index is greater than the length of the JSONArray, then null elements will be added as necessary to pad it out.

Parameters:
index The subscript.
value An int value.
Returns:
this.
Exceptions:
JSONException If the index is negative.

Definition at line 1509 of file JSONArray.java.

References element().

                                                    {
      return element( index, new Integer( value ) );
   }


Generated by  Doxygen 1.6.0   Back to index