Sixth chapter One-dimensional array 1 array initialization syntax array initializer2for each Loop3off-by-one error is usually used in the loop where the < is used in the <=4 copy array: 1.for 2. System.arraycopy 3.clone5arraycopy (Sourcearray, Src_pos, Targetarray, tar_pos, length); 6 anonymous array: Anonymous Array7 value pass Pass By value8 variable length parameter http://www.cnblogs.com/lanxuezaipiao/p/3190673.html9java.util.Arrays.sort (arrayname,begin,end); Java.util.Arrays.binarySearch (arrayname, value); return position/(-insertion point subscript + 1) arrays.equals (LIST1,LIST2); Arrays.fill (List1,begin,end,value); Keyword:anonymous arrayarrayarray initializerbinary Search Garbage collectionindexindexed variableinsertion Sortlinear searchselection sort6.1 elemtype[] arrayname = new elemtype[len];elemtype[] Arrayname = {value,...}; 6.2ARRAYNAME[INDEX];6.3X is 30The size of numbers is 606.4fftf6.5 .... 6.6unsigned int 0 a[2]6.7....6.8 array out-of-bounds arrayboundsexceed6.9 ... 6.10java.util.arrays.arraycopy (source,0,t,0,source.length); 6.14 stack 6.22 implements comparable interface or basic numeric type
Java Programming Basics Review notes Unit sixth