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.ArrayList;

import java.util.Collections;
import java.util.List;

public class Main {
    public static <A> List<A> append(A a, List<A> as) {
        List<A> result = new ArrayList<A>(as);
        result.add(a);
        return Collections.unmodifiableList(result);
    }
}