java isempty null;

isEmpty() String Example

java.lang.String class comes with many methods to check the string characters are lowercase or uppercase, digit or letter etc. Now, isEmpty() method returns true if string does not contain any characters or string length() is zero. Following is the method signature. public boolean isEmpty(): Tests string contains data. If the…