Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {
    public static ArrayList<Integer> integerRange(int min, int max) {
        ArrayList<Integer> beerValues = newArrayList();
        for (int i = min; i <= max; i++) {
            beerValues.add(i);
        }
        return beerValues;
    }

    public static <E> ArrayList<E> newArrayList() {
        return new ArrayList<E>();
    }
}