public static boolean hasText(final String text) {
		if (text != null && !"".equals(text.trim())) {
			return true;
		}
		return false;
	}
public static boolean hasText ( final String text ) { if ( text != null && ! "" . equals ( text . trim ( ) ) ) { return true ; } return false ; }
Method to validate whether the given string is null/empty or has value
@param text
@return boolean