Hi I am new to Java and would like to ask how to do this question:
Code a Java method that accepts a String array and a String. The method should return true if the string can be found as an element of the array and
false otherwise. Test your method by calling it from the main method which supplies its two parameters (no user input required). Use an array initialiser
list to initialise the array you pass. Test thoroughly.
I am trying to learn how to make a method.