Q:

Java Program to measure the length of a given string

0

Program to measure the length of a given string

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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);
   }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now