Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {

    @SuppressWarnings("unchecked")
    public static final List chopList(List list) {
        if (null == list) {
            return null;
        } else {
            for (int i = 0; i < list.size(); i++) {
                if (null == list.get(i)) {
                    list.remove(i);
                    i--;
                }
            }
            return list;
        }
    }
}