Menu
Question Index
...

Write a program to create a letter count string for the given input string.

Input (String) Output (String)
MERITCAMPUS A1C1E1I1M2P1R1S1T1U1
CHILDREN C1D1E1H1I1L1N1R1
POTATO A1O2P1T2
CRICKET C2E1I1K1R1T1
DDDAAAFFFBBE A3B2D3E1F3
ZZZZZZZ Z7
CAMEROON A1C1E1M1N1O2R1


import java.util.*;
class LetterCounter
{
    public static void main(String s[])
    {
        String inputWord = "MERITCAMPUS";
        System.out.println(createLetterCountString(inputWord));

    }


    public static String createLetterCountString(String inputWord) {
    }
    

}

Doubts

Problems

Topic: Java Character Extraction - toCharArray() Method 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