code: public static boolean endsWith(String str, char suffix) {
  	return str != null && str.length() > 0 && str.charAt(str.length() - 1) == suffix;
      }
docs: Tests if this string ends with the specified suffix.
  
  @param str string to check first char
  @param suffix the suffix.
  @return is last of given type