JAVA Write a class that corrects a sentence. Your class must capitalize the letter in each sentence
OOPs
In today's technology-driven world, computer programming skills are in high demand. The object-oriented programming (OOP) approach is very much useful while designing and maintaining software programs. Object-oriented programming (OOP) is a basic programming paradigm that almost every developer has used at some stage in their career.
Constructor
The easiest way to think of a constructor in object-oriented programming (OOP) languages is:
JAVA
Write a class that corrects a sentence. Your class must capitalize the letter in each sentence.
Example:
Input
after a train crashed, every single person died. who survived?all of the couples.
Output
After a train crashed, every single person died. Who survived?All of the couples.
Step by step
Solved in 2 steps