JAVA创建一个数组a[]={1,2,3,4,5},b[]={6,7,8,9,10}, 声明一个数组c...答:是要合并么?public class $ { public static void main(String[] args) { int[] a = { 1, 2, 3, 4, 5 }; int[] b = { 6, 7, 8, 9, 10 }; int[] c = new int[a.length + b.length]; int index = 0; for (int i : a) { c[index++] = ...
java语言中创建一个整数数组长度为10并初始化,然后将前5个位数与后5个...答:int[] numbers=new int[]{0,1,2,3,4,5,6,7,8,9}; for (int i = 0; i < numbers.length; i++) { if(i<=4){ int s=numbers[i]; numbers[i]=numbers[i+5]; numbers[i+5]=s; } } for (int i = 0; i < numbers.length; i++) {System.out.print...