2013年8月26日
摘要: 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) { ... 阅读全文
posted @ 2013-08-26 16:14 爱生活的夜 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2013-08-26 15:14 爱生活的夜 阅读(269) 评论(0) 推荐(0) 编辑