public void displayList() { Node temp = new Node(); temp = this.head; while(temp != null) { System.out.print(temp.data+", "); temp = temp.next; } }
public void displayList() { Node temp = new Node(); temp = this.head; while(temp != null) { System.out.print(temp.data+", "); temp = temp.next; } }