Menu
Question Index
...

Write a program to calculate the length of the given input string.

Input (String) Output (int)
'Your Online JAVA School' 23
'HYDERABAD' 9
'7 wonders' 9
'Cerone Software' 15
EMPTY 0



class CalculateLengthOfStringLiterals
{
    public static void main(String s[])
    {
        System.out.println("Length of the string is : " + getLengthOfString("Your Online JAVA School"));

    }


    public static int getLengthOfString(String inputString) {
    }

}

Doubts

Problems

Topic: Literals 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