报错:Eclipse工具启动提示the selection cannot be launched,and there are no recent
经网上查找了解,缺少String []args,好久没学java了暴露了,修改后run
错误代码
public class Student {
public static void main() {
String name="liuzr";
System.out.println(name);
}
正确代码应该加String []args就可以运行了
public class Student {
public static void main(String []args) {
String name="liuzr";
System.out.println(name);
}
}