
JAVA技术文章
liaoya
认真游戏,积极做人
展开
-
正则表达式入门
众所周知,在程序开发中,难免会遇到需要匹配、查找、替换、判断字符串的情况发生,而这些情况有时又比较复杂,如果用纯编码方式解决,往往会浪费程序员的时间及精力。因此,学习及使用正则表达式,便成了解决这一矛盾的主要手段。 大家都知道,正则表达式是一种可以用于模式匹配和替换的规范,一个正则表达式就是由普通的字符(例如字符a到z)以及特殊字符(元字符)组成的文字模式,它用以描述在查找文字主体时待匹转载 2009-01-05 12:53:00 · 7451 阅读 · 2 评论 -
java深度拷贝
public static Object depthClone(Object srcObj) { Object cloneObj = null; try { ByteArrayOutputStream out = new ByteArrayOutputStream(); ObjectOutputStream转载 2009-11-26 23:12:00 · 2716 阅读 · 0 评论 -
Java concurrent exception in the synchronized collection
I met a java concurrent exception in the synchronize collection few days ago. Case: In case a thread do the add/remove on this collection and another thread do the iterate at same time. It wil原创 2010-01-29 12:27:00 · 832 阅读 · 0 评论