public static boolean isEmpty(CharSequence str){
  return (str == null || str.length() == 0);
}

public static boolean isEmpty ( CharSequence str ) { return ( str == null || str . length ( ) == 0 ) ; }
returns true if the string is null or 0 - length .
