我这代码有问题吗?调用方法运行没有结果,求指教
public class Practice2 { public static void print(){ System.out.println("我爱JAVA"); }}class Student{ public static void main(String[] args){ Practice2.print(); }}
public class Practice2 { public static void print(){ System.out.println("我爱JAVA"); }}class Student{ public static void main(String[] args){ Practice2.print(); }}
2019-12-11
举报