public class SequentialSearch {

static final int value=5;
public void init(){  
      int [] table = {7,4,2,5,8,9};
     
  boolean found = search(table,value);
   }

public boolean search(int [] table, int wanted)
{
for (int i=0; i< table.length; i++)
 if (table[i]==wanted) return true;
return false;

 }
}

