摘要: java.lang .ClassInstances of the class Class represent classes and interfaces in a running Java application. An enum is a kind of class and an annotation(注释) is a kind of interface. Every array also belongs(属于) to a class that is reflected as aClass object that is shared(共享) by all arrays with the s 阅读全文
posted @ 2012-05-04 19:06 hibernate3例子 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 关键字: js一、类型转换 1.转换成字串 ECMAScript的Boolean值、数字和字串的原始值的有趣之处在于它们是伪对象,这意味着它们实际上具有属性和方法。 如: Js代码varsColor="blue"; alert(sColor.length);//outputs"4"[js] view plaincopyvarsColor="blue";alert(sColor.length);//outputs"4"总而言之,3种主要的原始值Boolean值、数字和字串都有toString()方法。ECMAScri 阅读全文
posted @ 2012-05-04 13:35 hibernate3例子 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Convention Plugin原文:http://cwiki.apache.org/WW/convention-plugin.html翻译:石太祥(ealpha@gmail.comhttp://www.lalfa.com)·1Introduction·2Setup·3Converting a Codebehind based application to Convention·4Hello world·5Code behind hello world·6Results and result codes·7Chaining 阅读全文
posted @ 2012-05-04 12:58 hibernate3例子 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 3秒搞定!~~ 一亿数据获取前100个最大值整合网络上的算法。 根据我的思路。计算一亿个数字中最大的前100个值。昨晚效率还是很低。 今天搞的算法。 只需要3秒钟。 获取前100个 前1000个 速度都非常快。算法原理:把一亿个数字的前100个 首先放入数组。 然后把最小值放在ary[0]。然后再,循环100到一亿 之间的。 每次循环判断当前数字是否大于ary[0]当大于时,当前数字放入ary[0] 并再次重构数组最小值进入ary[0] 以此类推 。当循环完这一亿个数字后。 最大的前100个数字就出来了。源码分享地址:http://download.csdn.net/download/yjfl 阅读全文
posted @ 2012-05-04 10:39 hibernate3例子 阅读(474) 评论(0) 推荐(0) 编辑