Question: IN JAVA Ask the user for three employees. Store the data into three employee objects (use the Employee class from the previous question). Display those

IN JAVA

Ask the user for three employees. Store the data into three employee objects (use the Employee class from the previous question). Display those employees in a table. On this question, you'll submit two files: Employee.java and some other file that has a main.

Standard Input
Bill Gates 1234 Engineering Engineer Elon Musk 4443 Business CEO Steve Jobs 9999 Creative Designer 

Required Output

-- Employee Entry Form -- Enter name Enter ID Enter department Enter position -- Employee Entry Form -- Enter name Enter ID Enter department Enter position -- Employee Entry Form -- Enter name Enter ID Enter department Enter position Name ID Department Position Bill Gates 1234 Engineering Engineer Elon Musk 4443 Business CEO Steve Jobs 9999 Creative Designer 

Here's what I have for Employee.java so far

public class Employee { private String name; private int idNumber; private String department; private String position; public Employee(String name, int idNumber, String department, String position) { this.name = name; this.idNumber = idNumber; this.department = department; this.position = position; } public String getName() { return name; } public void setName(String name) { this.name = name; } public int getIdNumber() { return idNumber; } public void setIdNumber(int idNumber) { this.idNumber = idNumber; } public String getDepartment() { return department; } public void setDepartment(String department) { this.department = department; } public String getPosition() { return position; } public void setPosition(String position) { this.position = position; } }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!