package com.ds; public class Node { Object value; Node next; public Node(Object value,Node next) { this.value=value; this.next=next; } }