|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSearcher
public class Searcher
Class that demonstrates search algorithms
| Constructor Summary | |
|---|---|
Searcher()
|
|
| Method Summary | |
|---|---|
static String |
binaryFind(String target,
String[] list)
Method to use a binary search to find a target string in a sorted array of strings |
static String |
linearFind(String target,
String[] list)
Implement a linear search through the list |
static void |
main(String[] args)
Main for testing binary find |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Searcher()
| Method Detail |
|---|
public static String linearFind(String target,
String[] list)
public static String binaryFind(String target,
String[] list)
public static void main(String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||