Question: I want Java code for this question 5. A company wants to maintain the list (Array List)of employees' details such a name, employee ID, designation

I want Java code for this question
5. A company wants to maintain the list (Array List)of employees' details such a name, employee ID, designation and the project assigned for him. The company needs some provisions like adding a new employee to the list, changing the project assigned to him and view all employees' details. Design a console application using Object Oriented Programming concepts in Java as follows. Create a class Employee with the following attributes: Employee ID, Name, Designation and Project ID. Add a behavior to modify the Project ID with new ID. Create another class Project with the following members Project ID and Project Name. Create another class Company which contains company name, list of Employees and list of Projects. While adding new employee or modifying the project id of an employee, the project id given by the user has to be validated as it should be an existing project id in the list of projects. In main, create an object for Company with some initial list of Projects and empty Employee list. Demonstrate the following through menu-driven user choice. 1. Adding new Employee to the Company, 2. Change the Project assigned for a particular Employee, 3. Display all Employees' details(Employee name, Employee id, Project name). Implement using Object Oriented Programming concepts. Handle the exceptions wherever needed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
