Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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;

    }
}