Class SearchMethods

java.lang.Object
  extended bySearchMethods

public class SearchMethods
extends java.lang.Object

Demonstrate search algorithms


Constructor Summary
SearchMethods()
           
 
Method Summary
static java.lang.String find(java.lang.String target, java.lang.String[] list)
          Implement a simple binary search through the list
static java.lang.String lfind(java.lang.String target, java.lang.String[] list)
          Implement a linear search through the list
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchMethods

public SearchMethods()
Method Detail

lfind

public static java.lang.String lfind(java.lang.String target,
                                     java.lang.String[] list)
Implement a linear search through the list


find

public static java.lang.String find(java.lang.String target,
                                    java.lang.String[] list)
Implement a simple binary search through the list


main

public static void main(java.lang.String[] args)