Question: This problem is asking for me to write a method in the SentenceCounter class that will pass the test in the images above. Counting Lower

 This problem is asking for me to write a method in

This problem is asking for me to write a method in the SentenceCounter class that will pass the test in the images above.

Counting Lower Case Letters The next piece of functionality we're going to build is a method that counts the number of lower case letters in our String. Here's the test: Make this compile and watch the @Test test go RED. As with counting public void testCountLower (0) blanks, countLowerCase() will assertEquals (15, scl.countLowerCase()); need to walk though the string. assertEquals (40, sc2.countLowerCase()); However, this time it must check to see if the character in the current position is a lower-case letter. Write the code to make this test go GREEN and then REFACTOR as appropriate per REFACTOR includes writing the javadoc comments for the tests

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!