Question: Write a static method called countUpper.This method will take a String as an input parameter and return an integer that count a the number of

Write a static method called countUpper.This method will take a String as an input parameter and return an integer that count a the number of capital letters in the string.For your use:In the Character class there is a static method called isUpperCase that takes one character as a parameter and return a a Boolean. Also the string class has an instance method called charTs which takes an integer as a parameter and returns the Character at that indexed location

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!