public static boolean isEmpty(@Nullable String s){
  return s == null || s.isEmpty();
}

public static boolean isEmpty ( @ Nullable String s ) { return s == null || s . isEmpty ( ) ; }
checks whether given string is null or empty
