public static boolean endsWithIgnoreCase(String str,String suffix){
  return str != null && suffix != null && str.regionMatches(true,str.length() - suffix.length(),suffix,0,suffix.length());
}

public static boolean endsWithIgnoreCase ( String str , String suffix ) { return str != null && suffix != null && str . regionMatches ( true , str . length ( ) - suffix . length ( ) , suffix , 0 , suffix . length ( ) ) ; }
test if the given string ends with the specified suffix , ignoring upper / lower case .
