java问题:int[] n=new int[4];然后如何赋值?

2025-06-20 11:41:06
推荐回答(1个)
回答1:

循环赋值 也可以 int[] n = new int[] {1,2,3,4}
这样就直接赋值了 也是4个