请问Java数组如何给定初始值。不用循环。其初始长度以变量形式存在。如:
int len = 3;
int [] arr = new int [len];
如何让arr的初始值为-1?