public void print() { Node current = head; while (current != null) { System.out.println(current.data()); current = current.next; } }