摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--System.out.println(newDate().toLocaleString()+"start...");newThread(newRunnable(){publicvoidrun(){Sy... 阅读全文
posted @ 2010-04-03 23:51 yongwnet 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 1 vector是线程同步的,所以它也是线程安全的,而arraylist是线程异步的,是不安全的。如果不考虑到线程的安全因素,一般用arraylist效率比较高。2 如果集合中的元素的数目大于目前集合数组的长度时,vector增长率为目前数组长度的100%,而arraylist增长率为目前数组长度的50%.如过在集合中使用数据量比较大的数据,用vector有一定的优势。3 如果查找一个指定位置的数... 阅读全文
posted @ 2010-04-03 22:29 yongwnet 阅读(686) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--importjava.io.ByteArrayInputStream;importjava.io.ByteArrayOutputStream;importjava.io.ObjectInputStre... 阅读全文
posted @ 2010-04-03 21:46 yongwnet 阅读(249) 评论(0) 推荐(0) 编辑