上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 72 下一页
摘要: applicationContext-common-threadpool.xml 阅读全文
posted @ 2017-09-07 10:21 tonggc1668 阅读(121) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: [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)
摘要: 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 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 下一页