//算法:折半查找
class Search{
public static void main(String [] args){
}
public static <AnyType extends Comparable<? super AnyType>> int BinarySearch(AnyType[] arr,AnyType x){
int low =0;
int heigeht=a.length-1;
int (low+height)/2=mid;
while(low<=height){
if(arr[i].CompareTo(x)<0){
}else if(arr[i].CompareTo(x)>0){
}
}
}
} |
|