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

use java please use java please O CAO 5. Write a static method called countStartingChar

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!