I*****y 发帖数: 6402 | 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);
| p******e 发帖数: 897 | 2 need to specify main class on run configuration?
contain
【在 I*****y 的大作中提到】 : 在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]; :
|
|