java Node

[ad_1]

java Node
import java.util.*;

public class SinglyLinkedList {

    private class Node {
        private E element;
        private Node next;

        public Node(E e, Node n) {
            element = e;
            next = n;
        }

        public E getElement() {
            return element;
        }

        public Node getNext() {
            return next;
        }

        public void setNext(Node n) {
            next = n;
        }
    }
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com