Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class IntNode {
- // fields or instance variables
- int data; // data part of the node
- IntNode next; // reference to the next node in the linked list
- // Constructor: initializes the node
- IntNode (int data, IntNode next) {
- this.data = data;
- this.next = next;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement