public static boolean isNullOrEmpty(final String str){
  return null == str || str.isEmpty();
}

public static boolean isNullOrEmpty ( final String str ) { return null == str || str . isEmpty ( ) ; }
determines if the specified string is null or empty .
