冒泡排序:外层循环减1,里层循环减1减外层循环
数组:是存储在一个连续的内存块中的元素集合。数组中的每个元素必须是相同的数据类型;数组中的第一个元素的索引为0;
在Java中声明一个char数组:char a[] = new char[5]; / char []a = {'1','2','2'}
得到数组的长度:.length
引用数组:person[0] = new Person(); 数组中每个引用的初始化都为null
数组复制:public static void arraycopy(Object source,int sourcePos, Object destination, int destinationPos,int length)
—— sourcePose:复制的源数组;destination:复制给哪个目标数组,length:复制的元素的数目
//:单行注释
/* */:多行注释
/** */:javadoc中的注释