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

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