I am trying to find a way to insert all the info pertaining to the student or the faculty into some sort of String Collections(JAVA). example, maps , hashtables arraylists etc My main has the below methods which cover all name ,city..... getters setters and Tostring() a. I read multiple posts relevant to my question,but non suffices my needs.
public void studentStuff(){
student.nameAge();
student.addressparamaters();
System.out.println(student.toSTring());
}
public void facultyStuff(){
faculty.nameAge();
faculty.addressparamaters();
System.out.println(faculty.toSTring());
Running my Main I get prompted for input in the following order;
Please Enter First Name
Mike
Please Enter Last Name
Fontain
Please Enter Age
22
Please Enter The House Number :
15
Please Enter The StreetName :
Mackay Place
Please Enter The City Name :
Long Island
Please Enter The House Zip Code:
null
Please a valid ZIP code format
11209
Out Put
First Name: Mike
Last Name : Fontain
Age : 22.0
HOUSE NUMBER: 15
Street Name : Mackay
City : Place
State: Long
Zip: 11209