在我的java类中使用此代码时,它显示错误
//Get all the Employees
List employeeList = dao.getAllEmployees();
System.out.println("*** List of all Employee ***");
for(Employee emp2 : employeeList)
{
System.out.println("Employee ID ::"+emp2.getId());
System.out.println("Employee Name ::"+emp2.getName());
System.out.println("Employee Age ::"+emp2.getAge());
System.out.println("Deptartment ::"+emp2.getDept());
System.out.println(" *********************");
}
System.out.println();