Last active
March 10, 2020 17:21
-
-
Save deepakmehra10/28e760b32294b61865ac0455c552dd39 to your computer and use it in GitHub Desktop.
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
String name = ""; | |
System.out.println(name.isEmpty()); // true | |
String name1 = " "; | |
System.out.println(name1.isEmpty()); // false | |
String name2 = " "; | |
System.out.println(name2.isBlank()); // true | |
String name3 = ""; | |
System.out.println(name3.isBlank()); // true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment