我的 myeclipse 6.0 在 run java 程序弹出“Editor does not contain a main type”错误信息,执行的代码为:
public class TestEmun {
enum Day {Monday , Tuesday , Wednesday , Thursday , Friday , saturday , Sunday }
public static void main(String[] args) {
Day yesterday = Day.Tuesday;
Day today = Day.Friday;
Day tomorrow = Day.Saturday;
// Output the values of the Day varibles
System.out.println( "Today is "+today);
System.out.println( "tomorrow will be "+tomorrow);
System.out.println( "Yesterday was "+yesterday);
}
}
------解决方案--------------------
活动窗口要是当前这个类