public static boolean empty ( final String aString ) { if ( aString != null ) { final int len = aString . length ( ) ; for ( int i = 0 ; i < len ; i ++ ) { // This mirrors String.trim(), which removes ASCII // control characters as well as whitespace. if ( aString . charAt ( i ) > ' ' ) { return false ; } } } return true ; }
Determines whether the given string is null or empty .