Question: create a class called faculty: Declare variables: facultyId, facultyName, facultyDept, facultySalary and create their getters. Create a static ArrayList for faculty: It should display something
create a class called faculty: Declare variables: facultyId, facultyName, facultyDept, facultySalary and create their getters.
Create a static ArrayList for faculty:
It should display something like this: Menu Option: 1. Insert for Student or Faculty 2. Remove by Index 3. Remove by Id 4. Remove by Name 5. Display.
Chose Option: 1 Insert 1 for Student or 2 for Faculty:
If you choose 1: Enter Student Id........... and other questions to enter data
If you choose 2: Enter Faculty Id....... and other questions to enter data.
and so on for all
So case 1 will have the if and else condition to choose which method to call. if(option==1){ insertStudent(); displayStudent(); }
else if(option==2){ insertFaculty(); displayFaculty(); }
break;
Step by Step Solution
3.42 Rating (158 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
