Question: please use java 5. Write a static method called countStarting Char that takes in an array of Strings and a char and returns the number

 please use java 5. Write a static method called countStarting Charplease use java

5. Write a static method called countStarting Char 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 char'h'. 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!