public static boolean isNotEmpty(final String s){
  return (s != null && s.length() > 0);
}

public static boolean isNotEmpty ( final String s ) { return ( s != null && s . length ( ) > 0 ) ; }
determines if the string is not empty .
