Index


Array Object


Also:
LCP
        AssociativeArray

 o addElement(String)

 o elementAt(int)

 o setElementAt(String, int)

 o size()

 o toString()

 o isEmpty()

 o contains(String)

 o indexOf(String)

 o lastIndexOf(String)


 o addElement

String addElement(String str)

Adds str as the last element of th array.

 o elementAt

String elementAt(int index)

Returns the string at index.

 o setElementAt

void setElementAt(String str, int index)

Sets the string at index to be str.  The existing
string at index is dropped from the array.

 o size

int size()

Returns the number of Strings currently in the array.

 o toString

String toString()

Returns a string composed of all the strings in the Array

 o isEmpty

boolean isEmpty()

Returns true if the array contains no elements.

 o contains

boolean contains(String str)

Returns true if str is in the array

 o indexOf

int indexOf(String str)

Searches for the first occurence of str in the array,
and returns an index to it, or -1 if it was not found.

 o lastIndexOf 

int lastIndexOf(String str)

Searches backwards for str, and returns an index to it,
or -1 if it was not found.


Index