/** This method iterates through the list and prints all values stored by the list. */
  public void printAllNodes() {
    ListNode currentNode = this.getHeadNode();

    while (currentNode != null) {
      System.out.println(currentNode.getNodeValue());
      currentNode = currentNode.getNextNode();
    }
  }