How to write string in JAVA and also see the String Length

class Main{
    public static void main(String args[]){
        String ss = "I Love JAVA";
        System.out.println(ss);
        System.out.println("Length of the String: " + ss.length());
        }
}



The Output is Given Below:
I Love JAVA
Length of the String: 11

0 comments:

Post a Comment