Here you can find the source of ContainsInList(String list, String value)
public static Boolean ContainsInList(String list, String value)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static Boolean ContainsInList(String list, String value) { if (list == null) { return false; } else {//from w w w . ja v a2s .c o m return Arrays.asList(list.split(",\\s*")).contains(value); } } }