Here you can find the source of endsWith(String[] endsWith, String line)
static boolean endsWith(String[] endsWith, String line)
//package com.java2s; //License from project: Open Source License public class Main { /**// w w w.j av a 2s . c o m * return true if line ends with something in the array */ static boolean endsWith(String[] endsWith, String line) { for (String s : endsWith) { if (line.endsWith(s)) { return true; } } return false; } }