2013年4月20日
摘要: public class HeapSort{ public static void main(String[] args){ int[] arrays = {45, 23,56,78,90,80,65}; HeapSort h = new HeapSort(); h.buildHeap(arrays); System.out.println(" ni hao a ".trim()); h.printArrays(arrays); } public void printArrays(int[] arrays){ for(int i=0; i<arrays.length; 阅读全文
posted @ 2013-04-20 15:39 尖刀舞者 阅读(125) 评论(0) 推荐(0) 编辑