@@ -0,0 +1,2037 @@
+package ru.matevosyan;%0A%0A/**%0A * EvenNumber class.%0A * Created on 14.05.2017.%0A * @author Matevosyan Vardan%0A * @version 1.0%0A */%0A%0Apublic class SimpleArray%3CT%3E %7B%0A%0A    private Object%5B%5D object;%0A    private int index = 0;%0A%0A    /**%0A     * SimpleArray constructor.%0A     * @param size array length.%0A     */%0A%0A    public SimpleArray(int size) %7B%0A        this.object = new Object%5Bsize%5D;%0A    %7D%0A%0A    /**%0A     * Method add() add value, defined in the instance of SimpleArray class to the array.%0A     * @param value  that would be added to array.%0A     */%0A%0A    public void add(T value) %7B%0A        this.object%5Bindex++%5D = value;%0A    %7D%0A%0A    /**%0A     * Method update change first pass value to second pass value.%0A     * @param currentValue value that going to be changed.%0A     * @param updateValue value that going to be added instead of first pass value.%0A     */%0A%0A    public void update(T currentValue, T updateValue) %7B%0A        for (int i = 0; i %3C this.object.length; i++) %7B%0A            if (this.object%5Bi%5D.equals(currentValue)) %7B%0A                this.object%5Bi%5D = updateValue;%0A            %7D%0A        %7D%0A    %7D%0A%0A    /**%0A     * Method delete() created to delete value from the array.%0A     * @param value that going to be deleted from the array.%0A     */%0A%0A    public void delete(T value) %7B%0A        for (int i = 0; i %3C this.object.length; i++) %7B%0A            if (this.object%5Bi%5D != null && this.object%5Bi%5D.equals(value)) %7B%0A                int size = this.object.length - i - 1;%0A                System.arraycopy(this.object, i + 1 ,this.object, i, size);%0A            %7D%0A            this.object%5Bthis.object.length - 1%5D = null;%0A        %7D%0A%0A    %7D%0A%0A    /**%0A     * Method get() created to get the value from the array passing the index.%0A     * @param position in array, which value going to get.%0A     * @return value from index was passed to the method.%0A     */%0A%0A    public T get(int position) %7B%0A        return (T) this.object%5Bposition%5D;%0A    %7D%0A%0A    /**%0A     * Array getter.%0A     * @return object holder.%0A     */%0A%0A    public Object%5B%5D getObject() %7B%0A        return this.object;%0A    %7D%0A%7D%0A

add SimpleArray.java