Question: use java please O CAO 5. Write a static method called countStartingChar that takes in an array of Strings and a char and returns the
O CAO 5. Write a static method called countStartingChar that takes in an array of Strings and a char and returns the number of words in the array that begin with the given char. For example, given an array of Strings ("hello", "goodbye", "house", "doctor") and the char'h', the method should return 2, as "hello" and "house" begin with the charth This method should be case-sensitive (meaning you don't need to worry about case)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
