Here you can find the source of endsWithIgnoreCase(String s, String suffix)
public static boolean endsWithIgnoreCase(String s, String suffix)
//package com.java2s; public class Main { public static boolean endsWithIgnoreCase(String s, String suffix) { return s.regionMatches(true, s.length() - suffix.length(), suffix, 0, suffix.length()); }/* w w w . j a v a 2 s. c o m*/ }