Question: Complete the method below that will accept an array of Strings as a parameter and search through the array for a word containing dog. If

Complete the method below that will accept an array of Strings as a parameter and search through the array for a word containing "dog". If it finds the word dog in any of the words, it will return the index of the first occurrence. If it does not find dog, it will return - 1. For example: public static int whereIsDog (String [] words) \{
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
