package ru.job4j;

/**
 * Task 5.2.1
 * Create generic
 *
 * @author Anton Vasilyuk
 * @version 1.0
 * @since 0.1
 */
public class GenericOne {

    private 
}

@@ -12,16 +12,58 @@
 job4j;%0A%0A
+import java.util.NoSuchElementException;%0A%0A
 /**%0A * T
@@ -170,33 +170,705 @@
 ass 
-GenericOne %7B%0A%0A    private 
+SimpleList%3CE%3E %7B%0A%0A    private Object%5B%5D objects;%0A    private int index = 0;%0A%0A    public SimpleList(int size) %7B%0A        this.objects = new Object%5Bsize%5D;%0A    %7D%0A%0A    public %3CK%3E K print(K value) %7B%0A        System.out.println(value);%0A        return value;%0A    %7D%0A%0A    public void add(E value) %7B%0A        this.objects%5Bindex++%5D = value;%0A    %7D%0A%0A    public E get (int position) %7B%0A        return (E) this.objects%5Bposition%5D;%0A    %7D%0A%0A    public void update(int position, E value) %7B%0A        if (value != null) %7B%0A            this.objects%5Bposition%5D = value;%0A        %7D else %7Bthrow new NullPointerException(%22this value is null%22);%7D%0A    %7D%0A%0A    public void delete(int position) %7B%0A        this.objects%5Bposition%5D = null;%0A    %7D
 %0A%7D%0A

add file for chapter_003_5.2.1