数组常量只能在初始化器中使用 错误示范: int arr[] = new int[3]; arr={34,55,434}; 正确写法: int arr[] = new int[3]; arr[0]=1; arr[1]=2; arr[3]=5;