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

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

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

index The subscript.
value A double value.
JSONException If the index is negative or if the value is not finite.

Definition at line 1495 of file JSONArray.java.

References element().

      return element( index, new Double( value ) );

Generated by  Doxygen 1.6.0   Back to index