Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static Object[] increaseSize(int BUFFER, Object[] userObjects, int size) {
        int newSize = userObjects.length + BUFFER;

        Object[] newArray = new Object[newSize];

        System.arraycopy(userObjects, 0, newArray, 0, size);
        userObjects = newArray;
        return userObjects;
    }
}