create a class called faculty: Declare variables: facultyId, facultyName, facultyDept, facultySalary and create their getters. Create a
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 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;
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates