java singly linked list  use the template below to solve the problem USE THE TEMPLATE!!!!!!!!!!!!!!!  public class Citizen{     //Create your list of attributes/variables here     //Your default constructors goes here     public Citizen(){     }          //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");     } } 1. Create a class called Citizen with the following attributes/variables: a. String citizenID b. String citizenName c. String citizenSurname d. String citizenCellNumber e. int registrationDay f. int registrationMonth g. int registrationYear

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 5PE
icon
Related questions
icon
Concept explainers
Question

java singly linked list 

use the template below to solve the problem

USE THE TEMPLATE!!!!!!!!!!!!!!! 

public class Citizen{
    //Create your list of attributes/variables here

    //Your default constructors goes here
    public Citizen(){

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

1. Create a class called Citizen with the following attributes/variables:
a. String citizenID
b. String citizenName
c. String citizenSurname
d. String citizenCellNumber
e. int registrationDay
f. int registrationMonth
g. int registrationYear 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Types of Linked List
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning