If you wants the perform binary search,
Before that search you have to sort the datas.
The array must be sorted (as by the sort(int) method) prior to making this call. If it is not sorted, the results are undefined.
SCJP6.0,My blog Ranchers from Delhi