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

public static boolean isNullOrEmpty ( String s ) { return s == null || s . length ( ) == 0 ; }
check if a string is null or empty ( the length is null ) .
