数组
1、数组的定义
如:int[] x = new int[100];
或int x[] = new int[100];
2、数组的静态初始化
如:int[] aa = new int[] {3,4,5};
3、多维数据
如:
int[][] xx = new int[3][];
xx[0] = new int[3];
xx[1] = new int[2];
4、一些与数组相关的函数
a. System.arraycopy(Object src,intsrcPos,Object dest,int destPos,intlength)复制数组,将源数组srcPos开始的length个元素从目标数组的destPos位置开始存储。
b. Array.sort()数组升序排序