Write a java program called linearsearchtwo that contains a


Write a Java program, called LinearSearchTwo that contains a static method called findElement() that accepts a 2D char array and a char as its parameters and return a boolean value if the char is contained in the 2D char array. The array and search value should be taken in using user input. You should print an appropriate message to the screen if the element is found.

Input:

n mi mi+1 mi+2 ... mi+n x, where n is the length of the array, mi is an element in the array and x is the element that is being searched for.

Output:

A message stating if the element is found.

Sample Output 1:

.. was found in the array

Sample Output 2:

.. was NOT found in the array

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a java program called linearsearchtwo that contains a
Reference No:- TGS02197564

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)