Search:

Type: Posts; User: GregBrannon

Search: Search took 0.18 seconds.

  1. Replies
    3
    Views
    1,116

    Re: Linear Search in an array

    Replace the last line in the main() method with:

    System.out.println( linearSearch(list, key) );
  2. Replies
    3
    Views
    1,116

    Re: Linear Search in an array

    Please read the Announcement topic at the top of the sub-Forum to learn how to post code correctly and ask good questions.

    You don't do anything with the value that is returned. You can print it,...
Results 1 to 2 of 2