这问题咋解决
中文乱码,
public class aa{
public static void main(String[] args){
int[] arr = {1,2,3,4};
System.out.println("arr[0] = "+arr[0]);
System.out.println("arr[1] = "+arr[1]);
System.out.println("arr[2] = "+arr[2]);
System.out.println("arr[3] = "+arr[3]);
System.out.println("数组的长度为:"+arr.length);
}
}
编码问题,看下你现在文件编码
可以尝试在程序中添加字符集设置,比如:System.setProperty("file.encoding", "UTF-8");