Let's test your knowledge. Fill in the missing part by typing it in.
The Node
class is missing a snippet of code. Fill in the missing snippet for the Node
class of a linked list.
TEXT/X-JAVA
1public class Node {
2
3 int data;
4
5 ______________________
6
7 Node() {}
8
9 public Node(int data, Node next) {
10 this.data = data;
11 this.next = next;
12
13 }
14}
Write the missing line below.