I don't know how to start this..
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 **
Re: I don't know how to start this..
If you are truly stuck then you should speak to your teacher. Please do not reply saying that they are useless and never teach you anything. If you make the effort to see them and ask them specific questions they will help you as much as they can without giving you the answer.