Created
June 5, 2021 14:03
-
-
Save MrRahulR/1e72b0a0228741480da2af189192e5b6 to your computer and use it in GitHub Desktop.
StringLength.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringLength { | |
public static void main(String[] args) { | |
String hello = "hello"; | |
int myString = "hellostring".length(); | |
System.out.println(hello.length()); | |
System.out.println(myString); | |
} | |
} | |
/* | |
Output : | |
5 | |
11 | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment