摘要: 一.有序数组的折半查找【步骤】① low=0,high=length-1; //初始值② 当low>high时,返回查找失败信息③ lowa[mid],low=mid+1; //查找在右半区 c.若key=a[mid],返回mid //查找成功【算法实现】public int bi... 阅读全文
posted @ 2015-04-20 20:54 hwu_harry 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 在项目中使用到了Timer,需要定时地执行某些功能。import java.util.Timer;import java.util.TimerTask;public class TestTimer { public static void main(String[] args) { ... 阅读全文
posted @ 2015-04-20 19:47 hwu_harry 阅读(129) 评论(0) 推荐(0) 编辑