Here you can find the source of endsWithAnyIC(String str, String[] needles)
public static boolean endsWithAnyIC(String str, String[] needles)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean endsWithAnyIC(String str, String[] needles) { if (str == null || str.length() == 0 || needles == null || needles.length == 0) return false; str = str.toLowerCase();//from w ww. j av a 2 s. c o m for (String n : needles) { if (str.endsWith(n)) return true; } return false; } }