Compiler error: “class, interface, or enum expected”

前端 未结 6 1721
时光说笑
时光说笑 2020-11-27 17:29

I have been troubleshooting this program for hours, trying several configurations, and have had no luck. It has been written in java, and has 33 errors (lowered from 50 befo

6条回答
  •  無奈伤痛
    2020-11-27 18:23

    the main method should be declared in the your class like this :

    public class derivativeQuiz_source{
        // bunch of methods .....
    
        public static void main(String args[])
        {
            // code 
        }
    }
    

提交回复
热议问题