Java程序编译没通,却能运行结果,为什么?
可以运行出窗口,但是不能执行操作。一旦点击运算,就出现以下结果。Exceptioninthread"AWT-EventQueue-0"java.lang.Error:Un...
可以运行出窗口,但是不能执行操作。一旦点击运算,就出现以下结果。
Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems:
Cannot make a static reference to the non-static method multiply(double, double) from the type Main2.MyMath
Cannot make a static reference to the non-static method divide(double, double) from the type Main2.MyMath
Cannot make a static reference to the non-static method add(double, double) from the type Main2.MyMath
Cannot make a static reference to the non-static method subtract(double, double) from the type Main2.MyMath
Cannot make a static reference to the non-static method multiply(double, double) from the type Main2.MyMath
Cannot make a static reference to the non-static method divide(double, double) from the type Main2.MyMath 展开
Exception in thread "AWT-EventQueue-0" java.lang.Error: Unresolved compilation problems:
Cannot make a static reference to the non-static method multiply(double, double) from the type Main2.MyMath
Cannot make a static reference to the non-static method divide(double, double) from the type Main2.MyMath
Cannot make a static reference to the non-static method add(double, double) from the type Main2.MyMath
Cannot make a static reference to the non-static method subtract(double, double) from the type Main2.MyMath
Cannot make a static reference to the non-static method multiply(double, double) from the type Main2.MyMath
Cannot make a static reference to the non-static method divide(double, double) from the type Main2.MyMath 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询