package ru.matevosyan;

/**
 * Created by Admin on 18.05.2017.
 */
public interface IDynamicArray<E> {
    void add(E value);

    E get(int index);
}

package ru.matevosyan;

/**
 * IDynamicArray interface.
 * Created on 18.05.2017.
 * @author Matevosyan Vardan
 * @version 1.0
 */

public interface IDynamicArray<E> {

    /**
     * Add value to an array.
     * @param value is value that type which you declare in generics.
     */

    void add(E value);

    /**
     * Get value from an array by index passing.
     * @param index position value in an array.
     * @return value that type specify in generic.
     */

    E get(int index);
}

add javadoc to IDynamicArray.java