Here you can find the source of endsWithIgnoreCase(String source, String eq)
public static boolean endsWithIgnoreCase(String source, String eq)
//package com.java2s; //License from project: Apache License public class Main { public static boolean endsWithIgnoreCase(String source, String eq) { int temp = eq.length(); if (eq.length() > source.length()) { return false; }//from w w w .j a v a 2 s . c om return source.substring(source.length() - temp).equalsIgnoreCase(eq); } }