Java tutorial
//package com.java2s; import java.util.List; public class Main { public static boolean contain(List<String> list, String cls) { for (String str : list) { if (cls.startsWith(str)) { return true; } } return false; } }