摘要: 转载自:http://www.cnblogs.com/ILove/archive/2008/04/07/1140419.html 我们可能经常会用到 Thread.Sleep 函数来使线程挂起一段时间。那么你有没有正确的理解这个函数的用法呢?思考下面这两个问题: 假设现在是 2008 4 7 12: 阅读全文
posted @ 2017-07-06 17:02 dfhao 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 1、冒泡排序 2、直接选择排序 3、反转排序 //将原序列反序排列 public class Demo { public static void main(String[] args) { int[] a = { 7, 6, 5, 4, 3, 2, 1 }; int temp; int len = 阅读全文
posted @ 2017-07-06 15:36 dfhao 阅读(635) 评论(0) 推荐(0) 编辑