public void add(String value) {
        if (size == array.length) //if we're at capacity
            ensureCapacity(size + 1L);
        array[size++] = value;
    }
public void add(String value) {
        if (size == array.length) 
            ensureCapacity(size + 1L);
        array[size++] = value;
    }
public void add ( String value ) { if ( size == array . length ) //if we're at capacity ensureCapacity ( size + 1L ) ; array [ size ++ ] = value ; }
This adds an item to the array (increasing 'size' by 1).

@param value the value to be added to the array
This adds an item to the array ( increasing size by 1 ) .