java Singly linked list
2. Create a class called Node with the following attributes/variables:a. Citizen citizenb. 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"); }}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here