Advertisement
WallHero

TP04E04 Node

Oct 30th, 2020
764
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. public class Node<ELEMENT> {
  2.     ELEMENT item;
  3.     Node<ELEMENT> next;
  4.    
  5.     public Node()
  6.     {
  7.     }
  8.    
  9.     public Node(ELEMENT _item)
  10.     {
  11.         item = _item;
  12.     }
  13.    
  14.     public Node(ELEMENT _item, Node<ELEMENT> _next)
  15.     {
  16.         item = _item;
  17.         next = _next;
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement