会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tonggc1668
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
59
60
61
62
63
64
65
66
67
···
72
下一页
2017年9月7日
TaskFactory单例模式利用xml
摘要: applicationContext-common-threadpool.xml
阅读全文
posted @ 2017-09-07 10:21 tonggc1668
阅读(121)
评论(0)
推荐(0)
2017年9月5日
ReflectionUtil
摘要: import java.lang.reflect.Method; @SuppressWarnings("rawtypes") public class ReflectionUtil { @SuppressWarnings("unchecked") public static Object invokeStaticMethod(String className, String ...
阅读全文
posted @ 2017-09-05 10:16 tonggc1668
阅读(157)
评论(0)
推荐(0)
2017年9月4日
HttpUtils
摘要: import java.io.IOException; import java.net.URLEncoder; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.apache.h...
阅读全文
posted @ 2017-09-04 17:20 tonggc1668
阅读(138)
评论(0)
推荐(0)
dom4j解析XML
摘要: import java.io.ByteArrayInputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.codec.binary.Base64; import org.apac...
阅读全文
posted @ 2017-09-04 15:51 tonggc1668
阅读(136)
评论(0)
推荐(0)
HttpClientHelper
摘要: public static String invoke(String jsondata, String url, String appsecret, String account, String version) throws Exception { byte[] dataAssembleByte = RSAUtils.encryptByPublicKey(jsondat...
阅读全文
posted @ 2017-09-04 10:35 tonggc1668
阅读(206)
评论(0)
推荐(0)
2017年8月30日
正则表达式--反斜杠
摘要: import java.util.regex.Matcher; import java.util.regex.Pattern; String s = "c:\\test.txt"; //String regEx = ".+[\\\\]{0,}.+$"; String regEx = "\\\\";
阅读全文
posted @ 2017-08-30 10:51 tonggc1668
阅读(193)
评论(0)
推荐(0)
2017年8月19日
快速排序
摘要: [2, 3, 4, 5, 6, 8]
阅读全文
posted @ 2017-08-19 21:00 tonggc1668
阅读(104)
评论(0)
推荐(0)
递归读取文件夹下的文件
摘要: public class FileRecursive { public static void main(String[] args) { File file=new File("D:/"); testFile(file); } public static void testFile(File file){ if (file.isDirectory()) { ...
阅读全文
posted @ 2017-08-19 18:00 tonggc1668
阅读(173)
评论(0)
推荐(0)
2017年8月18日
有序数组二分法查找
摘要: public static int binarySearch(int[] array,int value){ int min =0; int max =array.length-1; int mid =(min +max)>>>1; while(min value ){ max =mid -1; }else{ ...
阅读全文
posted @ 2017-08-18 16:12 tonggc1668
阅读(150)
评论(0)
推荐(0)
byte取高4位,低4位,byte转int
摘要: byte abyte =-1; System.out.println(abyte); System.out.println(Integer.toBinaryString(abyte)); //取高四位 byte high = (byte) ((abyte>>4) & 0x0f); System.ou
阅读全文
posted @ 2017-08-18 14:48 tonggc1668
阅读(963)
评论(0)
推荐(0)
上一页
1
···
59
60
61
62
63
64
65
66
67
···
72
下一页
公告