chapter_004/src/main/java/ru/job4j/list/MyArrayList.java
/**
     * This method expand the MyArrayList.
     *
     * @param count - size of MyArrayList.
     */
This method expand the MyArrayList.
@param count - size of MyArrayList.
This method expand the MyArrayList . @param count - size of MyArrayList .
private void ensureCapacity(int count) {
        if (count > this.container.length) {
            this.container = Arrays.copyOf(container, container.length * 2);
        }
    }
private void ensureCapacity ( int count ) { if ( count > this . container . length ) { this . container = Arrays . copyOf ( container , container . length * 2 ) ; } }
This method expand the MyArrayList.
This method expand the MyArrayList .