Menu
Question Index
...

Write a program to capitalize the first letter of every word in the sentence

Input(string) Output(string)
sun rises in the east Sun Rises In The East
hihowru? Hihowru?
He is GOING to school He Is GOING To School



class CapitalizeTheFirstLetter
{
    public static void main(String s[])
    {
        String input = "sun rises in the east";
        String output = capitalizeFirstLetters(input);
        System.out.println("Capitalized sentence is : " + output);

    }


    public static String capitalizeFirstLetters(String input)
    {
    }

}

Doubts

Problems

Topic: charAt() Method In Java - Java Character Extraction

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App