Hi,
I have a really dumb question! But i thought why not give it a try...
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 have started on it and I know it is wrong, could someone please help me. Give me an answer and a explanation, that would be really great because Im so confused at the moment, Thanks!