Question: Create a method called isMoreLowerCase that takes as input a String and returns a boolean. It should return true if the input string has more
Create a method called isMoreLowerCase that takes as input a String and returns a boolean. It should return true if the input string has more lowercase characters than uppercase characters and false otherwise.
Examples: hasMoreLowerCase("This has more lowercase"); returns true
hasMoreLowerCase("THIS DOES not Have MORE LOWERCASE"); returns false
hasMoreLowerCase(""); returns false
hasMoreLowerCase(" 12315 5522 a"); returns true;
You may assume that the input String is not null, though it might be an empty String.
boolean hasMoreLowerCase(String input) {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
