Challenge: Basic String Manipulation
Explore writing unit tests and implementing Java methods for string manipulation tasks. Understand how to apply TDD principles by creating tests for counting characters, converting strings to lowercase, and counting specific character occurrences before coding the solution.
We'll cover the following...
We'll cover the following...
Task and requirements
You’re given a string containing a sentence. Your task is to create a Java program that performs the following operations:
Count the total number of characters in the sentence, excluding spaces.
Convert the sentence ...