@@ -0,0 +1,773 @@
+package package7;%0A%0Apublic class Element %7B%0A%09private Element next = null;%0A%09private Element head;%0A%09private int x;%0A%0A%09//Constructor%0A%09//When creating new list, set isHead to true (then head is ignored)%0A%09Element(int x, boolean isHead, Element head, Element next)%7B%0A%09%09this.x = x;%0A%09%09this.next = next;%0A%09%09%0A%09%09if(isHead)%0A%09%09%09this.head = this;%0A%09%09else%0A%09%09%09this.head = head;%0A%09%7D%0A%09//Sets x%0A%09public void setVal (int x)%7B%0A%09%09this.x = x;%0A%09%7D%0A%09%0A%09public int getVal ()%7B%0A%09%09return x;%0A%09%7D%0A%09%0A%09public Element getNext()%7B%0A%09%09return next;%0A%09%7D%0A%09%0A%09public void setNext(Element next)%7B%0A%09%09this.next = next;%0A%09%7D%0A%09%0A%09public void removeNext()%7B%0A%09%09if(next != null)%0A%09%09%09next = next.getNext();%0A%09%7D%0A%09%0A%09public Element getHead()%7B%0A%09%09return head;%0A%09%7D%0A%09%0A%09public void insertAfter(int x)%7B%0A%09%09next = new Element(x, false, head, next);%0A%09%7D%0A%09%0A%7D%0A

Create Element.java