Question
In Java Netbeans, define a class Employee which has attributed fname, lname, title which are Strings. EmployeeNum and age, which are integers and salary which
In Java Netbeans, define a class Employee which has attributed fname, lname, title which are Strings. EmployeeNum and age, which are integers and salary which is double. The class should be made Serializable and comparable by salary. Only define the construtor which takes six arguments. Define getters and setters for each attribute.
Declare a list of type Linkined List to hold Employees Definined above. Write a loop that allows the user to enter Employees into the List (Assume that javax.swingJoptionPane has been imported.
Next Prompt the uyser for the Employee Number of an Employee. Declare an Iterator and search the list using the iterator to find the EMployee and Output their name and salary. Prompt the user for the name of a file and output the List to a binary file. Prompt the user for the name of an input file and read the list from the file
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