中文字符导致的问题,你的类名换成英文的。不支持中文命名哦。还有包名也最好不要用中文。
public class Array3.
解决办法:选择当前类,右键-Refactor-Rename 修改为Array3即可。
public class 后用英文命名一个,你写的数组变量3是中文,所以报错