Untitled

 avatar
unknown
plain_text
2 years ago
382 B
4
Indexable
Class Node { 
     int data;    the data of this node is stored here
     Node next;   the reference to the next node is here(the beloved pointer)
     
     public Node(int data)  {
          this.data = data;
          this.next = null;
    }
}

class LinkedList {
    Node head;
    public void addNode(int data){}
    public void deleteNode(int data){}
}
Editor is loading...