Here you can find the source of endsWithIgnoreCase(String input, String suffix)
public static boolean endsWithIgnoreCase(String input, String suffix)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean endsWithIgnoreCase(String input, String suffix) { if (input.length() < suffix.length()) return false; String inputSuf = input.substring(input.length() - suffix.length()); return inputSuf.equalsIgnoreCase(suffix); }//from w ww. ja va 2 s . c o m }