学接口新写了一个程序,可是调用接口下的类的时候好像没法运行出来,不知道哪里有问题

主函数在duotai.textinterface包下的educationtest
接口在textinterface.java下面

img

img


在educationtest这个类下主函数好像没有运行按钮诶

主函数是这样的。 如有帮助,望采纳


 class Test {
    public static void main(String[] args) {
//     主函数是上方这种格式
        
    }

主函数的方法声明不对.人家是静态的

main方法是static 调用的类方法也得是static