Question: Please PLeDescription Write a Java program that can display the current list of employees, add a new employee to the list, and remove one from
Please PLeDescription
Write a Java program that can display the current list of employees, add a new employee to the
list, and remove one from the list.
Sample Output Your output should be similar to the text in the following box
Employees Management System
Command Menu:
list List all the employees
add Add an employee
remove Remove an employee
exit Exit the application
Command: liss
Invalid command. Try again.
Command: list
Mark Benson,
Jenny Ha
Command: add
Name: John Rink
Income:
ID:
John Rink is added.
Command: list
Mark Benson,
Jenny Ha
John Rink,
Command: remove
Index:
Mark Benson is removed.
Command: list
Jenny Ha
John Rink,
Command: exit
System terminated.
Specifications
Use your IDE to create a project named Project and a main Java class named Project
In the same Projectjava file, create another class named Employee that contains the
following methods:
one constructor
get and set methods
toString
printInfo
In the main method, declare an array list to store Employee objects.
Add the following methods to the main class:
private void printTitle: Prints the title of the application on the screen
private void list: Lists all the employees
private void add: Adds a new employee to the employee list
private void remove: Removes an employee from the employee list
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
