天天看点

java数组如何初始化

java数组如何初始化?

答:

byte[] byInputBuffer = new byte[3];

Arrays.fill(byInputBuffer, (byte)3);