Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ooo;
- public int data;
- public Node next;
- public Node(int data, Node next) {
- this.data = data;
- this.next = next;
- }
- package ooo;
- public static void main(String[] args) {
- Node a = new Node(1,null);
- System.out.println(a.data);
- }
- LinkedList<Node> linkedlist = new LinkedList<Node>();
Add Comment
Please, Sign In to add comment