java 无法解析为类型_Java类“无法解析为类型”

这是我得到的错误:

Exception in thread "main" java.lang.Error: Unresolved compilation problem:

TeamLeader cannot be resolved to a type

at TeamLeadDemo.main(TeamLeadDemo.java:26)

这是我的代码:

import java.util.Scanner;

public class Employee {

public String empName, empNumber, hireDate;

public class TeamLeadDemo {}

public Employee(String empName, String empNumber, String hireDate) {

this.setEmpName(empName);

this.setEmpNumber(empNumber);

this.setHireDate(hireDate);

}

public void setEmpName(String empName) {

this.empName = empName;

}

public void setEmpNumber(String empNumber) {

this.empNumber = empNumber;

}

public void setHireDate(String hireDate) {

this.hireDate = hireDate;

}

public String ge

你可能感兴趣的:(java,无法解析为类型)