public class demo1 {
public static void main(String[] args)
{
String str = "Hello";
int len = str.length();
System.out.println("The string length of '"+str+"' is: "+len);
}
}
Java
Program to measure the length of a given string.

Written by
View ProfileNikhil Juneja
Passionate software developer and technical contributor at TutorialsLink.
