int[]a={3,4,5,6,7}; int[]b={1,2,3,4,5,6,7}; int[] arry=new int[7]; System.out.print("数组b[]={"); for(int i=0;i<5;i++) { b[i]=a[i]*b[i]; System.out.print(+b[i]+","); } System.out.print(b[5]+","+b[6]+"}");