Here you can find the source of endsWithIC(String a, String b)
public static boolean endsWithIC(String a, String b)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean endsWithIC(String a, String b) { if (a == null || b == null) return false; else if (a.endsWith(b)) return true; else//from w w w . j a va 2 s . com return a.toLowerCase().endsWith(b.toLowerCase()); } }