数组的复制 — System.arraycopy()System.arraycopy(source,srcPos,dest,destPos,length)
复制source数组中从下标srcPos开始的length个元素到目标数组dest,并从目标数组的下标为destPos的位置开始储存
source: 源数组
srcPos: 源数组中的起始位置dest: 目标数组
dest: 目标数组
destPos:目标数组中的起始位置length: 要复制的数组元素的个数
length: 要复制的数组元素的个数
数组的排序 — java.util.Arrays.sort( )
Arrays.sort(arr_name)
Arrays.sort(arr_name,fromIndex,toIndex)
对数组arr_name中,从下标为fromIndex到toIndex的元素(不包括
toIndex)进行升序排序