public static boolean stringIsNullOrEmpty(@Nullable CharSequence string){
  return string == null || string.length() == 0;
}

public static boolean stringIsNullOrEmpty ( @ Nullable CharSequence string ) { return string == null || string . length ( ) == 0 ; }
checks whether the given char sequence is null or empty
