File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes binary search Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "binary search" Watch "binary search" New topic

binary search

ramesh kandukuri
Ranch Hand

Joined: Jan 10, 2001
Posts: 47
Is there any method in any package available for
Binary search?
Thanks in advcance
Rehana Shaik
Ranch Hand

Joined: Jan 03, 2003
Posts: 33
In java.util pacakage in collections you can find binary search
static int binarySearch(List list, Object key)
static int binarySearch(List list, Object key, Comparator c)
Peter den Haan
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
- Peter
I agree. Here's the link:
subject: binary search
jQuery in Action, 3rd edition