Here you can find the source of endsWith(String string, String... end)
public static boolean endsWith(String string, String... end)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean endsWith(String string, String... end) { for (String s : end) { if (string.endsWith(s)) return true; }//from w w w .ja v a 2 s . c o m return false; } }