@@ -0,0 +1,2519 @@
+/**%0A * Created by p1408189 on 6/8/16.%0A */%0Apublic class CharTreeNode %7B%0A%0A    char value;%0A    int count;%0A    CharTreeNode right;%0A    CharTreeNode left;%0A%0A    public CharTreeNode(char value) %7B%0A%0A        this.count = 1;%0A        this.value = value;%0A        this.right = null;%0A        this.left = null;%0A    %7D%0A%0A%0A    public boolean addToChildren(char charToAdd) %7B%0A/*%0A        if (this.value == charToAdd) %7B%0A            return false;%0A        %7D%0A*/%0A%0A        if (charToAdd %3C this.value) %7B%0A            if (this.left == null) %7B%0A                this.left = new CharTreeNode(charToAdd);%0A                return true;%0A            %7D else %7B%0A                this.left.addToChildren(charToAdd);%0A            %7D%0A%0A        %7D else if (charToAdd %3E this.value) %7B%0A            if (this.right == null) %7B%0A                this.right = new CharTreeNode(charToAdd);%0A                return true;%0A            %7D else %7B%0A                this.right.addToChildren(charToAdd);%0A            %7D%0A        %7D%0A%0A        return false;%0A    %7D%0A%0A    public boolean searchIfChildrenContain(char valueToFind) %7B%0A%0A        return (this.value == valueToFind) %7C%7C (this.right != null ? this.right.searchIfChildrenContain(valueToFind) : false) %7C%7C (this.left != null ? this.left.searchIfChildrenContain(valueToFind) : false);%0A    %7D%0A%0A    public void increaseCount(char value) %7B%0A%0A        if (this.value == value)%7B%0A            this.count++;%0A        %7D else %7B%0A            if (this.right != null)%7B%0A                this.right.increaseCount(value);%0A            %7D%0A            if (this.left != null)%7B%0A                this.left.increaseCount(value);%0A            %7D%0A        %7D%0A    %7D%0A%0A    public int countOf(char value) %7B%0A       if (this.value == value)%7B%0A           return count;%0A       %7D%0A       return (this.right != null ? this.right.countOf(value) : 0) + (this.left != null ? this.left.countOf(value) : 0);%0A%0A%0A    %7D%0A%0A%0A    public void paintChildrenInOrder() %7B%0A%0A        if (this.left != null )%7B%0A            this.left.paintChildrenInOrder();%0A        %7D%0A%0A        System.out.print( %22%22 + this.count + this.value + %22 %22);%0A%0A        if (this.right != null )%7B%0A            this.right.paintChildrenInOrder();%0A        %7D%0A%0A    %7D%0A%0A    public void paintChildrenInOrderIfGreaterThan(int cap) %7B%0A%0A        if (this.left != null )%7B%0A            this.left.paintChildrenInOrderIfGreaterThan(cap);%0A        %7D%0A%0A        if (cap %3C this.count)%7B%0A            System.out.print( %22%22 + this.count + this.value + %22 %22);%0A%0A        %7D%0A%0A        if (this.right != null )%7B%0A            this.right.paintChildrenInOrderIfGreaterThan(cap);%0A        %7D%0A    %7D%0A%7D%0A

Create CharTreeNode.java