Replace the last line in the main() method with:
System.out.println( linearSearch(list, key) );
Type: Posts; User: GregBrannon
Replace the last line in the main() method with:
System.out.println( linearSearch(list, key) );
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,...