Site Search:

MyNode.java


public class MyNode {
    int value;
    MyNode next;
    
    public MyNode(int value, MyNode next) {
        this.value = value;
        this.next = next;
    }
}