Here you can find the source of stringContains(String line, List
public static boolean stringContains(String line, List<String> list)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { public static boolean stringContains(String line, List<String> list) { for (String s : list) if (line.contains(s)) return true; return false; }/*from w w w . j ava 2s.c om*/ }