Mac安装java运行第一个程序报错 代码:Class Hello World{}
报错需要class, interface或enum
收起
你的文件名是hello,所以里面类的定义要这样写,然后再写其他代码:
public class hello{ }
报告相同问题?