Click here to watch in Youtube :
https://www.youtube.com/watch?v=yYDjqsvsor0&list=UUhwKlOVR041tngjerWxVccw
Click the below Image to Enlarge
Java Tutorial : Java String [isEmpty() method] |
/* * public boolean isEmpty() * * Returns: * ------- * true if length() is 0, otherwise false */ public class IsEmptyDemo { public static void main(String[] args) { String s1 = ""; String s2 = "welcome"; System.out.println(s1.isEmpty());//true System.out.println(s2.isEmpty());//false } }
true false
https://sites.google.com/site/javaee4321/java/StringDemo_isEmpty_App.zip?attredirects=0&d=1
Github Link:
https://github.com/ramram43210/Java/tree/master/BasicJava/StringDemo_isEmpty_App
Bitbucket Link:
https://bitbucket.org/ramram43210/java/src/219b10088440d75a7105e6bff5bbab9e88ad9a80/BasicJava/StringDemo_isEmpty_App/?at=master
See also:
No comments:
Post a Comment