上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 72 下一页
摘要: 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 阅读(154) 评论(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 阅读(971) 评论(0) 推荐(0)
摘要: int a=-1; Integer b=0; Integer c=0; System.out.println(Integer.toBinaryString(a)); b=a>>1; c=a>>>1; System.out.println(Integer.toBinaryString(b)); Sys 阅读全文
posted @ 2017-08-18 11:13 tonggc1668 阅读(128) 评论(0) 推荐(0)
摘要: public class DataHandleHelper { public static String encryptConsignee(Object consignee){ String con = ""; if(StringUtil.isNotBlank(String.valueOf(consignee))){ co... 阅读全文
posted @ 2017-08-18 09:44 tonggc1668 阅读(137) 评论(0) 推荐(0)
摘要: 固定线程池默认抛弃策略,线程超过数量被抛弃不执行,但是队列默认数量是整形的最大数,一般是超不过队列数量加线程池数量 spring线程池 阅读全文
posted @ 2017-08-18 09:29 tonggc1668 阅读(221) 评论(0) 推荐(0)
摘要: import org.apache.commons.lang.builder.CompareToBuilder;Collections.sort(outboundNotices, new Comparator() { @Override public int compare(OutboundNoticePrintRespV... 阅读全文
posted @ 2017-08-16 15:56 tonggc1668 阅读(272) 评论(0) 推荐(0)
摘要: import org.apache.commons.codec.binary.Base64;import org.apache.commons.codec.digest.DigestUtils; 阅读全文
posted @ 2017-08-15 09:45 tonggc1668 阅读(135) 评论(0) 推荐(0)
摘要: package com.yd.wmsc.util; public class Test { public void say(){ System.out.println("Say Hello"); } } import java.io.File; import java.io.FileInputStream; import java.io... 阅读全文
posted @ 2017-08-09 12:51 tonggc1668 阅读(322) 评论(0) 推荐(0)
摘要: package com.yd.wmsc.util; public class Test { public void say(){ System.out.println("Say Hello"); } } import java.io.ByteArrayOutputStream; import java.io.File; import j... 阅读全文
posted @ 2017-08-09 12:27 tonggc1668 阅读(238) 评论(0) 推荐(0)
摘要: reverse-pairs 阅读全文
posted @ 2017-08-08 13:25 tonggc1668 阅读(74) 评论(0) 推荐(0)
上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 72 下一页