@@ -0,0 +1,1556 @@
+package ru.job4j.list;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Iterator;%0A/**%0A * SimpleLinkedList %D0%BA%D0%BB%D0%B0%D1%81%D1%81 %D1%80%D0%B5%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D0%B8 LinkedList %D0%BD%D0%B0 %D0%BC%D0%B0%D1%81%D1%81%D0%B8%D0%B2%D0%B5.%0A * @author romatihsenko%0A * @since 10.07.2017%0A * @version 1%0A */%0Apublic class SimpleLinkedList%3CE%3E implements Iterable%3CE%3E %7B%0A    /**%0A     * container - container for el-ts.%0A     */%0A    Object%5B%5D container;%0A    /**%0A     * size of container.%0A     */%0A    int size;%0A    /**%0A     * temporary el-t index.%0A     */%0A    int index = 0;%0A%0A    public SimpleLinkedList(int size) %7B%0A        this.size = size;%0A        this.container = new Object%5Bsize%5D;%0A    %7D%0A%0A    /**%0A     * add - method for adding el-ts.%0A     * @param value - value%0A     */%0A    public void add(E value) %7B%0A        if (index == size) %7B%0A            container = Arrays.copyOf(container,size * 2);%0A        %7D%0A        container%5Bindex++%5D = value;%0A    %7D%0A%0A    /**%0A     * get - method for getting el-ts.%0A     * @param index - index.%0A     * @return el-t.%0A     */%0A    public E get(int index) %7B%0A        return (E)container%5Bindex%5D;%0A    %7D%0A%0A    /**%0A     * iterator - method to return iterator.%0A     * @return iterator.%0A     */%0A    @Override%0A    public Iterator%3CE%3E iterator() %7B%0A        return new IteratorList%3C%3E();%0A    %7D%0A%0A%0A%0A    public class IteratorList%3CT%3E implements Iterator%3CT%3E %7B%0A        /**%0A         * position - current pos.%0A         */%0A        int position = 0;%0A%0A        @Override%0A        public boolean hasNext() %7B%0A            return position %3C container.length;%0A        %7D%0A%0A        @Override%0A        public T next() %7B%0A            return (T) container%5Bposition++%5D;%0A        %7D%0A    %7D%0A%7D%0A

List task 1