Here you can find the source of stringContainsItemFromList(String inputString, List
private static boolean stringContainsItemFromList(String inputString, List<String> items)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { private static boolean stringContainsItemFromList(String inputString, List<String> items) { for (String item : items) { if (inputString.contains(item)) { return true; }//from w ww. j av a2 s . c o m } return false; } }