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...


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");
    }
}



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here