|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--Searcher
Simple linear searcher.
| Constructor Summary | |
Searcher(java.lang.String[] in)
Create and populate a list using Strings provided by the caller. |
|
| Method Summary | |
int |
findName(java.lang.String str)
Find a name and return its index |
static void |
main(java.lang.String[] arg)
Run it and find the name supplied by the user. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Searcher(java.lang.String[] in)
in - the String array to use for initialization| Method Detail |
public int findName(java.lang.String str)
str - the name to find
public static void main(java.lang.String[] arg)
arg - the name to find in the list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||