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:
MAKE A JAVA PROGAM OF THIS PROBLEM
Problem:
Write a class that corrects a sentence. Your class must capitalize the letter in each sentence. (Only the first letter of the sentence must capitalized, not every word. See example below)
Input:
turn us on our backs and open up our stomachs, and you will be the wisest but at the start a lummox. what are we? books.
Output:
Turn us on our backs and open up our stomachs, and you will be the wisest but at the start a lummox. What are we? Books.
Step by step
Solved in 2 steps