Java tutorial
//package com.java2s; import java.util.List; public class Main { public static <T> boolean isElementExsit(List<Object> es, T e) { if (es == null || es.size() == 0) return false; for (Object a : es) { if (a.toString().equals(e)) { return true; } } return false; } }