摘要:
在a数组索引为1位置插入4 然后将a拷贝到b行成新数组 [2,5,8] a 数组b int[] b = new int[a.length+1]; System.arraycopy(a,0,b,0,1) 将a数组的0到1索引的数拷贝到b数组起始为0的位置 a : 原数组 0: a开始拷贝的位置 b: 阅读全文
摘要:
`` 点击查看代码 import java.util.Scanner; public class Main { public static int[] a = new int[10]; public static void main(String[] args) { Scanner s = new 阅读全文