摘要:
setTimeout only one time, so need recursion. So continues running the function one after one SetInterval continues running, without stoping, and it runs every intervals, without waiting the former sto... 阅读全文
posted @ 2009-03-02 15:06
白开水皮皮
阅读(202)
评论(0)
推荐(0)
摘要:
Enumeration param = request.getParameterNames(); while (param.hasMoreElements()) { name = param.nextElement().toString(); properties.setProperty(name, ... 阅读全文
posted @ 2009-03-02 14:03
白开水皮皮
阅读(198)
评论(0)
推荐(0)
摘要:
利用 Comparable 接口创建自己的类的排序顺序,只是实现 compareTo() 方法的问题。通常就是依赖几个数据成员的自然排序。同时类也应该覆盖 equals() 和 hashCode() 以确保两个相等的对象返回同一个哈希码。 这个接口的作用:如果数组或者集合中的(类)元素实现了该接口的话 , 我们就可以调用 Collections.sort 和 Arrays.sort 排序,或应用... 阅读全文
posted @ 2009-03-02 10:55
白开水皮皮
阅读(722)
评论(0)
推荐(0)
浙公网安备 33010602011771号