Here you can find the source of anyNoneNull(String... arrays)
public static String anyNoneNull(String... arrays)
//package com.java2s; public class Main { public static final String EMPTY_STRING = ""; public static String anyNoneNull(String... arrays) { if (null == arrays || 0 >= arrays.length) { return EMPTY_STRING; }/* w w w .j a v a 2s .c om*/ for (String string : arrays) { if (isNotBlank(string)) { return string.trim(); } } return EMPTY_STRING; } public static boolean isNotBlank(String str) { return !isBlank(str); } public static boolean isNotBlank(String... arrays) { for (String string : arrays) { if (isBlank(string)) { return false; } } return true; } public static boolean isBlank(String str) { int strLen; if (str == null || (strLen = str.length()) == 0) { return true; } for (int i = 0; i < strLen; i++) { if ((Character.isWhitespace(str.charAt(i)) == false)) { return false; } } return true; } }