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

public static boolean isEmpty ( String str ) { return ( str == null || str . length ( ) == 0 ) ; }
is null or its length is 0
