code: public boolean endsWith(String str, String suffix) {
          return (str == null || suffix == null) ? (str == suffix) :
              str.endsWith(suffix);
      }
docs: Tests if the given string ends with the given suffix.
  Returns true if the given string ends with the given suffix.
  
  @param str the source string
  @param suffix the suffix to test for
  
  @return true if the given string ends with the given suffix