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
Get step-by-step solutions from verified subject matter experts
