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

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!