I need to write a class ArraySearch<E> that has these two methods inside:
int find (E [] haystack, E needle);
int first_duplicate (E [] data);
The "find" method searches the haystack array to see if any of its elements is the same (determined by an "equals" method) as the needle. If there is a match, find returns the index of the first match. Otherwise, find throws the exception.
** Where do i start? I do not know how to start off this program **