Question: Java: Problem Description countLowerCase As A Method: The method should be named countLowerCase, accept a String as its parameter and return an int (the number

Java:

Problem Description countLowerCase As A Method: The method should be named countLowerCase, accept a String as its parameter and return an int (the number of lowercase letters in the String argument). Test your code with several test cases by creating a LoopPractice object in your main method and calling your countLowerCase method with various String arguments. Ensure it works properly.

Given Code:

public class LoopPractice { public int countLowerCase(String word)

{ int count = 0;

//Your solution here:

return count; //returns count (0 by default)

}

}

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!