标签:
第六章 一维数组 1 数组初始化语法 array initializer 2 for each loop 3 off-by-one error 通常是在循环中该使用<的地方使用了<= 4 复制数组:1.for 2.System.arraycopy 3.clone 5 arraycopy(sourceArray, src_pos, targetArray, tar_pos, length); 6 匿名数组: anonymous array 7 值传递 pass by value 8 变长参数 http://www.cnblogs.com/lanxuezaipiao/p/3190673.html 9 java.util.Arrays.sort(arrayname,begin,end); java.util.Arrays.binarySearch( arrayname, value);返回位置/(-插入点下标+1) Arrays.equals(list1,list2); Arrays.fill(list1,begin,end,value); Keyword: anonymous array array array initializer binary search garbage collection index indexed variable insertion sort linear search selection sort 6.1 elemType[] arrayname = new elemType[len]; elemType[] arrayname = {value,...}; 6.2 arrayname[index]; 6.3 x is 30 The size of numbers is 60 6.4 FFTF 6.5 .... 6.6 unsigned int 0 a[2] 6.7 .... 6.8 数组越界 arrayboundsexceed 6.9 ... 6.10 java.util.Arrays.arraycopy(source,0,t,0,source.length); 6.14 栈区 6.22 实现Comparable接口或者基本数值类型
标签:
原文地址:http://www.cnblogs.com/xuesu/p/4209826.html