Error:(1, 10) java: 需要class, interface或enumIDEA解决方法 IDEA如果出现Error:(1, 10) java: 需要class, interface或enum 点击右下角 然后再选择GBK 再换回UTF-8 就行了