StringUtils { public static boolean isContainEmpty(String... args){ if (args == null){ return false; } for (String arg: args){ if (arg == null || "".equals(arg)){ return true; } } return false; }  static boolean isEmpty(String str); static boolean isContainEmpty(String... args); static boolean isBlank(String str); static String trimToNull(String str); static String trimToEmpty(String str); static String trim(String str); static boolean equals(String str1, String str2); static boolean equalsIgnoreCase(String str1, String str2); static boolean startsWith(String str, String prefix); static boolean startsWithIgnoreCase(String str, String prefix); static boolean isNumeric(String str); static String join(Collection<T> collection, String separator); static String join(Collection<T> collection, String separator,
                                StringFormatter<T> formatter); static final String EMPTY; }
@Test public void testIsContainEmpty() { Assert.assertFalse(StringUtils.isContainEmpty(null)); Assert.assertFalse(StringUtils.isContainEmpty(new String[] {})); Assert.assertFalse(StringUtils.isContainEmpty(new String[] {"1"})); Assert.assertTrue(StringUtils.isContainEmpty(new String[] {null})); }