String str = ""; if(StringUtils.isEmpty(str)){ System.out.println("Yes, string is empty"); }
String str= ""; if (str != null || str.length() != 0) { // Do something }