每日总结

继续第六章

遍历数组。使用for与foerach进行遍历。

填充替换数组元素。fill(int[] a,int value),a是指定数组,value是填充元素,

fill(int[] a,int fromIndex,int toIndex,int value),索引范围从fromInsex到toIndex;

进行数组排序,Arrays.sort(object);object是数组名称。

数组复制。copyOf(arr,int new length),arr还要复制的数组,length是新数组的长度。

或者copyOf(arr,innt fromIndex,int toIndex),arr是要复制的数组,后面两个是起止索引

数组查询。binarySeacher(Object[],Object key),反水搜索值

原文地址:https://www.cnblogs.com/ldy2396/p/14159994.html