Running error: Editor does not contain a main type# Java - 爪哇娇娃
I*y
1 楼
在eclipse里写程序,然后运行,可是竟然出现这样的错误:Editor does not contain
a main type. 请问咋回事啊?有main method啊
下面是我的程序(练习题)
import java.util.*
public class EmployeeTest
{
public static void main(String[] args)
{
Employee[] staff = new Employee[3];
staff[0] = new Employee("John F C", 35000, 1987, 12, 13);
staff[1] = new Employee("Tony Success", 90000, 1989, 12, 01);
staff[2] = new Employee("Jennifer N", 1000, 1982, 3, 15);
a main type. 请问咋回事啊?有main method啊
下面是我的程序(练习题)
import java.util.*
public class EmployeeTest
{
public static void main(String[] args)
{
Employee[] staff = new Employee[3];
staff[0] = new Employee("John F C", 35000, 1987, 12, 13);
staff[1] = new Employee("Tony Success", 90000, 1989, 12, 01);
staff[2] = new Employee("Jennifer N", 1000, 1982, 3, 15);