Menu
Question Index
...


Write a program to create the letter count number of the given sentence.

Input (String) Output (Integer)
I love mom I-1 love-4 mom-3 = 143
I like my brother 1427
Sun rises in the east 35234
Learn Java with Merit Campus 54456

class CreateLetterCountNumber

{    public static void main(String s[])
    {
        String sentence = "I love mom";
        System.out.println("The letter count number is : " + createLetterCountNumber(sentence));

    }


public static int createLetterCountNumber(String sentence) {
//Write a code here to create the letter count number and return it.
}
}


Doubts

Problems

Topic: Additional String Methods in Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App