public E next() { E data = (E) currentNode.getData(); currentNode = currentNode.getNext(); return data; }