@@ -0,0 +1,976 @@
+package tree;%0A%0Aimport java.util.Comparator;%0Aimport java.util.Iterator;%0Aimport java.util.List;%0A%0Apublic class Tree%3CE extends Comparable%3CE%3E%3E implements SimpleTree%3CE%3E %7B%0A%0A    class Node%3CE%3E %7B%0A        List%3CNode%3CE%3E%3E childen;%0A        E value;%0A    %7D%0A%0A    Node%3CE%3E node;%0A    @Override%0A    public boolean add(E parent, E child) %7B%0A        Node%3CE%3E node = new Node%3C%3E();%0A        if (node.childen.isEmpty()) %7B%0A            node.value = parent;%0A            Node%3CE%3E nodeChild = new Node%3C%3E();%0A            nodeChild.value = child;%0A            node.childen.add(nodeChild);%0A            this.node = node;%0A            return true;%0A        %7D else %7B%0A            if (parent.compareTo(node.value) == 0) %7B%0A                Node%3CE%3E nodeChild = new Node%3C%3E();%0A                nodeChild.value = child;%0A                node.childen.add(nodeChild);%0A                return true;%0A            %7D%0A            return false;%0A        %7D%0A    %7D%0A%0A    @Override%0A    public Iterator%3CE%3E iterator() %7B%0A        return null;%0A    %7D%0A%7D%0A%0A

task 1711