wood burning stoves*
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
Author

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
Ramesh
Rehana Shaik
Ranch Hand

Joined: Jan 03, 2003
Posts: 33
Hai,
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
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
java.util.Collections.binarySearch()
java.util.Arrays.binarySearch()
- Peter
 
 
subject: binary search
 
Similar Threads
Arrays BinarySearch
depth of a binary tree ?
Array item selection
HashMap Vs Binary Sort
Binary data transmission using XML