Question
Need Java code for the following question: Create an Employee class that stores an employees ID number and name. Use the following data : Jack
Need Java code for the following question:
Create an Employee class that stores an employees ID number and name.
Use the following data :
Jack Shepard | 123 |
Charlie Pace | 234 |
Hugo Reyes | 456 |
Claire Littleton | 567 |
Ana Lucia Cortez | 678 |
Test ID for unmapped employee | 999 |
Then create anEmployeeMap class that allows you to add Employee objects and look them up by their ID numbers.
The EmployeeMap class should use a Map object to map ID number to Employee objects. Create an application to demonstrate the classes
ID Number: 234 Name: Charlie Pace ID Number: 345 Name: Hugo Reyes ID Number: 456 Name: Sun Kwon ID Number: 567 Name: Claire Littleton ID Number: 678 Name: Ana Lucia Cortez 999 is not found in the map.
Ratings will be given,
Thank you!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started