摘要: 找出一个值在一个数组中的位置class toBinarysearch { // 找出一个数 在一个数组中的位置 public static int search(int[] arr,int key) { for (int x=0;xarr[mid]) { ... 阅读全文
posted @ 2015-05-27 10:59 天上书生 阅读(217) 评论(0) 推荐(0) 编辑