Guest User

Untitled

a guest
May 20th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. package ooo;
  2.  
  3. public int data;
  4. public Node next;
  5.  
  6. public Node(int data, Node next) {
  7. this.data = data;
  8. this.next = next;
  9.  
  10. }
  11.  
  12. package ooo;
  13.  
  14. public static void main(String[] args) {
  15. Node a = new Node(1,null);
  16. System.out.println(a.data);
  17. }
  18.  
  19. LinkedList<Node> linkedlist = new LinkedList<Node>();
Add Comment
Please, Sign In to add comment