WallHero

TP04E04 Node

Oct 30th, 2020
676
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
RAW Paste Data