当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: import java.util.HashSet; impor
 

 

 ·ood中的设计手段总结    »显示摘要«
    摘要:以下是一些我从各处积累的ood设计手段,也就是在面向对象设计时需要注意的地方,综合的使用以下几点可以帮助规划一个好的设计。希望这些信息能对大家有用,我会随着时间慢慢累计一些其他的设计点的,所以希望大家常来我的blog看看。^_^ commonality-variability searching decomposing a problem domain by the responsibi......
 ·oracle 数据分页查询    »显示摘要«
    摘要:1. 最好还是利用分析函数row_number() over ( partition by col1 order by col2 ) 比如想取出100-150条记录,按照tname排序 select tname,tabtype from ( select tname,tabtype,row_number() over ( order by tname ) rn from tab)where r......


HashCode重载不当造成内存泄漏
import java.util.hashset; import java.util.set; /** *如果hashcode的方法重载不当,很容易造成内存泄漏,特别是当set为静态的时候 *并且,中间容易出现奇怪的现象,明明已经添加到set当中,但是contains方法却返回false */ public class hashtest { public static void main(string[] args){ set hashset = new hashset(); student student = new student(); student.setname("a"); student.setno("m"); hashset.add(student); student.setname("aaaaa"); boolean isok = hashset.contains(student); system.out.println(isok); hashset.add(student); int size =hashset.size(); system.out.println(size); hashset.remove(student); size =hashset.size(); system.out.println(size); } } class student { public student(){
...   下一页
 ·eclipse 3.0.1插件方案(java、c#版)    »显示摘要«
    摘要:bromon原创 请尊重版权   eclipse 3.0推出已经好几个月了,但是我一直都在继续使用2.1.4,等的就是各种插件的稳定生机。最近在eclipse 3.0.1的平台上稍有操练,觉得插件的功能更加丰富强大,安装也更加容易,eclipse体现了它惯有的强悍生命力。聊一聊我所使用的主流插件和基本配置。 首先是汉化,作为开发工具,英文界面并没有什么不好,不过我们可以汉化eclipse......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE