问题遇到的现象和发生背景
文件名Main.java
问题相关代码,请勿粘贴截图
class Student
{
String name;
int age;
int chinese;
int math;
int english;
int total()
{
return chinese + math + english;
}
int average()
{
return (int)total()/3;
}
}
运行结果及报错内容
开始运行
Error,Main method not found in class Main, please define the main method as
public static void main (string [ ] args )
or a JavaFX application class must extend javafx application Application
运行结束。■