de template below public class Node {
java Singly linked list
2. Create a class called Node with the following attributes/variables:
a. Citizen citizen
b. Node nextNode
using the code template below
public class Node {
//Create your list of attributes/variables here
//Your default constructors goes here
public Node(){
}
//Your accessors and mutators goes here
/*
EXAMPLE: Pls delete
*************
public int getSomething(){
return idk;
}
public void setSomething(String newWord){
oldWord = newWord;
}
**************
*/
//Your toString() method goes here
public String toString(){
return "";
}
//Your main method goes here to test for class implementation
public static void main(String[] args){
System.out.println("Hello Students");
}
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images