摘要:
package search;public class BinarySearch { public static void main(String[] args) { int[] arys = {1, 3, 6, 11, 35, 36, 45, 66, 75}; System.out.println(binarySearch(arys, 6, 0, arys.length - 1)); } private static int binarySearch(int[] arys, int element, int begin, int end) { ... 阅读全文
摘要:
1.encode public static String encode(byte[] bValue, String encode) { ByteArrayOutputStream o = new ByteArrayOutputStream(); byte d[] = new byte[4]; try { int count = 0; for(byte x[] = bValue; count > 2); d[1] = (byte) ((c & 3) > 4... 阅读全文