天天看點

java數組如何初始化

java數組如何初始化?

答:

byte[] byInputBuffer = new byte[3];

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