public class SearchingDemo
{
    public static void main(String[] args)
    {
        int[] b = {2, 4, 5, 7, 11, 12, 14, 16, 18, 30};

        System.out.println("Array values before searching:");
        for (int i = 0; i < b.length; i++)
        {
            System.out.print(b[i] + " ");
        }
        System.out.println();
            
        int elt = 17;
        int index = Searching.sequential(elt, b);
//        int index = Searching.binary(elt, b);

				if (index == -1)
				{
					System.out.println("Didn't find " + elt + " in the array.");
				}
				else
				{
        	System.out.println("Found " + elt + " at index " + index);
        }
    }
}