MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import java.util.ArrayList;

public class MainClass {
    public static void main(String[] a) {

        ArrayList list = new ArrayList();

        list.add("A");
        list.ensureCapacity(10);
        list.trimToSize();
    }
}