Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: I don't know how to start this..

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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 **


  2. #2
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,465
    My Mood
    Grumpy
    Thanks
    0
    Thanked 158 Times in 149 Posts

    Default 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.
    Improving the world one idiot at a time!

Similar Threads

  1. Replies: 2
    Last Post: December 26th, 2012, 12:08 PM
  2. Replies: 1
    Last Post: December 13th, 2012, 07:47 PM
  3. Replies: 0
    Last Post: July 2nd, 2012, 09:11 PM
  4. I don't know where to start.
    By fidl7ss in forum What's Wrong With My Code?
    Replies: 4
    Last Post: July 1st, 2012, 04:34 PM

Tags for this Thread