摘要: 1 public class TestSearch{ 2 public static void main(String[] args){ 3 int[] a = new int[]{1,3,6,8,9,10,12,18,20,38}; 4 int x = 23; 5 if(binarySearch(a,x)>0){ 6 System.out.println(binarySearch(a,x)); 7 }else{ 8 System.out.println("没有找到"); ... 阅读全文
posted @ 2011-11-20 12:54 ①只耳 阅读(163) 评论(0) 推荐(0) 编辑