我怎么才能让他跑起来,我把返回值改了,然后绿色的小三角没了,这个该怎么办
java规定的入口main函数返回值为void,改成int会报错
Error: Main method must return a value of type void in class HelloWorld, please
define the main method as:
public static void main(String[] args)
程序主入口是没有返回值得,只能是void ,带返回值得不能是主程序入口
。。。。楼上都说好了