Hello, I'm having difficulty with my Java code, my professor wants us to use the EmployeeDemo.java when writing our code and I can't seem to get what I am missing. Any help/tips is appreciated:
package chapter3; class Employee { private String setName; private String setDepart; private int setEmpID; private String setPosition; public Employee() { setName = " "; setDepart = " "; setEmpID = 0; setPosition = " "; } public Employee(String name, int num, String dept, String pos) { setName = name; setEmpID = num; setDepart = dept; setPosition = pos; } public Employee(String name, int num, String dept) { setName = name; setEmpID = num; setDepart = dept; setPosition = " "; } void setValues(String name, int num, String dept, String pos) { setName = name; setEmpID = num; setDepart = dept; setPosition = pos; } String getName() { return setName; } int getEmpID() { return setEmpID; } String getDepart() { return setDepart; } String getPosition() { return setPosition; } public class EmployeeDemo { public void main(String[] args) { //creating three Employee objects Employee employee1 = new Employee(); Employee employee2 = new Employee(); Employee employee3 = new Employee(); //Set all of Employee attributes employee1.setName("Susan Meyers"); employee1.setDepart("Accounting"); employee1.setEmpID(47899); employee1.setPosition("Vice President"); employee2.setName("Mark Jones"); employee2.setDepart("IT"); employee2.setEmpID(39119); employee2.setPosition("Programmer"); employee3.setName("Joy Rogers"); employee3.setDepart("Manufacturing"); employee3.setEmpID(81774); employee3.setPosition("Engineer"); //print out employee attributes on screen System.out.println(employee1.getName() + ", " + employee1.getEmpID() + ", " + employee1.getDepart() + ", " + employee1.getPosition()); System.out.println(employee2.getName() + ", " + employee2.getEmpID() + ", " + employee2.getDepart() + ", " + employee2.getPosition()); System.out.println(employee3.getName() + ", " + employee3.getEmpID() + ", " + employee3.getDepart() + ", " + employee3.getPosition()); } }