Linked List Node


class Node{
	int data;
	Node next;
	public Node(int data){
		this.data=data;
	}
	public int getData(){
		return data;
	}
	public void setData(int data){
		this.data=data;
	}
	public Node getNext(){
		return next;
	}
	public void setNext(Node next){
		this.next=next;
	}
}


Leave a Reply

Your email address will not be published. Required fields are marked *