Arrays 实用功能
public class CopyingArrays {public static void main(String[] args) {int[] i = new int[7];
int[] j = new int[10];
Arrays.fill(i, 47);// 填充
Arrays.fill(j, 99);
System.out.println("i="+Arrays.toString(i));// 转换成字符串打印
System.out.println("j="+Arrays.toString(j));
System.arraycopy(i,0,j,0,i.length);// 复制
System.out.println("j="+Arrays.toString(j));
System.out.println(Arrays.equals(i,j));// 比拟
}
}