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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started