Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.ArrayList;
import java.util.List;

public class Main {

    public static List<Object> removeDuplicateList(List<Object> list) {
        List<Object> tempList = new ArrayList<Object>();
        for (Object obj : list) {
            if (!tempList.contains(obj)) {
                tempList.add(obj);
            }
        }
        return tempList;
    }
}