2011年10月8日
摘要: package com.shuji.test;//直接插入排序public class InsertSortTest1 { private int array[] = { 11, 25, 14, 26, 2, 56, 22, 1 }; int temp1; public static void main(String args[]) { InsertSortTest1 inTest1 = new InsertSortTest1(); inTest1.method(); } public void method() { fo... 阅读全文
posted @ 2011-10-08 18:41 snowdrop 阅读(172) 评论(1) 推荐(0)
摘要: package com.cyuyan.test1;public class LingXingTest1 { public static void main(String args[]){ final int size = 4;//前四行 for (int i = 1; i <= size; i++) { for (int j = i; j < size; j++) { System.out.print(" "); } for (int k = 1; k <= 2 * i - 1; k++) { Syste... 阅读全文
posted @ 2011-10-08 18:25 snowdrop 阅读(291) 评论(0) 推荐(0)