code: public EncodedElement getEnd() {
      EncodedElement temp = next;
      EncodedElement end = this;
      while(temp != null) {
        end = temp;
        temp = temp.next;
      }
      return end;
    }
docs: Return the last element of the list given. Loops through all elements'
  "next" pointers, till the last is found.
  @return last element in this list