|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--SimpleArraySearch
Class SimpleArraySearch contains a single method to search for a number in an int-value array. The method uses a simple linear search algorithm.
Constructor Summary | |
SimpleArraySearch()
|
Method Summary | |
int |
searchArray(int[] numbers,
int value)
Return the position in the given numbers array of the first occurance of the given numeric value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleArraySearch()
Method Detail |
public int searchArray(int[] numbers, int value)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |