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