Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1.  
  2. public class IntNode {
  3.  
  4. // fields or instance variables
  5. int data; // data part of the node
  6. IntNode next; // reference to the next node in the linked list
  7.  
  8. // Constructor: initializes the node
  9. IntNode (int data, IntNode next) {
  10. this.data = data;
  11. this.next = next;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement