Пример #1
0
  public E next() {
    E data = (E) currentNode.getData();
    currentNode = currentNode.getNext();

    return data;
  }