Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.ArrayList;

public class Main {
    public static void main(String args[]) {

        ArrayList<Integer> arrlist = new ArrayList<Integer>(5);

        arrlist.add(10);
        arrlist.add(50);
        arrlist.add(30);

        arrlist.ensureCapacity(5000);

    }
}