随笔- 254
文章- 1
评论- 10
阅读-
34万
07 2014 档案
java arrayCopy
摘要:int[] dest = new int[0]; int[] value = {1,2}; if(value != null && value.length>0) { int[] tmp = dest; dest = new int[va...
阅读全文
Java 正则表达式 向前、向后匹配
摘要://向后匹配String a = "I paid $90 for 10 oranges, 12 pears and 8 apples. I saved $5 on "; Pattern p = Pattern.compile("(?<=\\$)\\d+"); Matcher m = p.ma...
阅读全文
postgres 正则表达式
摘要:PostgreSQL正则表达式基础:OperatorDescriptionExample~Matches regular expression, case sensitive'thomas' ~ '.*thomas.*'~*Matches regular expression, case insen...
阅读全文
java 分析方法调用过程
摘要:StackTraceElement[] s = new Exception().getStackTrace(); for(int i=0;i<s.length;i++) System.out.println(s[i].getClassName() + s[i].getMethodName())...
阅读全文