public static void main(String []args){  
        Comparable []c={4,9,23,1,45,27,5,2};  
        System.out.println("待排序数组");
        for(int i=0;i<c.length;i++)  
            System.out.print(c[i]+" ");
        insertionSort(c);  
        System.out.println("\n排序结果");
        for(int i=0;i<c.length;i++)  
            System.out.print(c[i]+" ");  
    }