@@ -0,0 +1,287 @@
+package org.psjava.algo.search;%0D%0A%0D%0Aimport org.psjava.ds.array.Array;%0D%0A%0D%0Apublic class LinearSearch %7B%0D%0A%0D%0A%09public static %3CT%3E int search(Array%3CT%3E array, T value, int def) %7B%0D%0A%09%09for (int i = 0; i %3C array.size(); i++)%0D%0A%09%09%09if (array.get(i).equals(value))%0D%0A%09%09%09%09return i;%0D%0A%09%09return def;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

add linear search