
java
shmcclmm
这个作者很懒,什么都没留下…
展开
-
java synchronized
String test = new String();...synchronized(test){ //(1)//这边不能对test进行操作,不然将失效}...synchronized(test){ //(2)//这边不能对test进行操作,不然将失效}...原因当两个并发线程访问同一个对象object中的这个synchronized(this)原创 2013-03-07 20:26:38 · 665 阅读 · 0 评论 -
Eclipse 快捷键
2011-04-27 11:01 eclipse 快捷键大全,eclipse查找类,文件,添加注释/* ---------------------------------------自理解----------------------------------------*/ctrl+shift+T //查找当前工程下的某个类 实时提示ctrl+shift+R//查找当前工转载 2013-03-22 10:49:30 · 786 阅读 · 0 评论 -
Exe4j的注册码
原文:http://wangyali90516.blog.163.com/blog/static/117205101201232641920294/exe4j是个很好的打包利器,官方下载地址:http://www.ej-technologies.com/download/exe4j/files.php 如果你不注册,打包好的软件每次启动都会报:this executable was c转载 2013-03-25 09:42:00 · 1095 阅读 · 0 评论 -
工作随记
1、eclipse下,点击DDMS或者logcat 后,整个eclipse就卡死了,这大部分是由于系统占用了adb导致的linux下面用ps -aux | grep adb 查看是否还有adb 在跑,有就直接 kill -9 PID 例子:USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMANDroot 22187 0.0 0.原创 2013-07-29 08:30:06 · 758 阅读 · 0 评论 -
java 编程中使用Pattern+Matcher 从一个大字符串中提取特定文字
String regex="[0-9]{2}\\:[0-9]{2}\\:[0-9]{2}"; // 提取 xx:xx:xx 也就是时间Pattern pattern=Pattern.compile(regex);String input=result.trim();Matcher matcher=pattern.matcher(input);while(matcher.find()){转载 2013-01-30 19:42:48 · 6025 阅读 · 0 评论