Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Collection;

import java.util.concurrent.CopyOnWriteArrayList;

public class Main {

    public static <E> CopyOnWriteArrayList<E> getCopyOnWriteArrayList() {
        return new CopyOnWriteArrayList<E>();
    }

    public static <E> CopyOnWriteArrayList<E> getCopyOnWriteArrayList(Collection<? extends E> collection) {
        return new CopyOnWriteArrayList<E>();
    }

    public static <E> CopyOnWriteArrayList<E> getCopyOnWriteArrayList(E[] toCopyIn) {
        return new CopyOnWriteArrayList<E>(toCopyIn);
    }
}