摘要:
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; 阅读全文