Question: ?**DEBUG JAVA CODE** ?**it says the tool completed succefully, but The output says// Error: Main method not found in class Employee, please define the main

?**DEBUG JAVA CODE**

?**it says the tool completed succefully, but The output says// Error: Main method not found in class Employee, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application Press any key to continue . . .

**When i put public static void main(String[] args)? it showed me 100 errors**

?**Please run the code correctly and show me output**

?** put comments on code so i can see what you did**

?**Thank you i will thumbs up good work**

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 Employee(String name, int idNumber){ this.name = name; this.idNumber = idNumber; this.department = ""; this.position = ""; } public Employee(){ this.name = ""; this.idNumber = 0; this.department = ""; this.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; } public String toString(){ return getName()+"\t"+getIdNumber()+"\t"+getDepartment()+"\t"+getPosition(); } }

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!