String str1 = ""; boolean notEmpty1 = StringUtils.isNotEmpty(str1); System.out.println(notEmpty1); // false
String str2 = null; boolean notEmpty2 = StringUtils.isNotEmpty(str2); System.out.println(notEmpty2); // false
String str3 = "hello"; boolean notEmpty3 = StringUtils.isNotEmpty(str3); System.out.println(notEmpty3); // trueIn this example, we pass a non-empty string to the isNotEmpty method. Since the string is not empty or null, the method returns true. Overall, the StringUtils class is a useful utility class that provides various methods to perform operations on strings in Java.