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 Object[] toObjectArray(ArrayList<Object> array) {
        Object arr[] = new Object[array.size()];

        for (int i = 0; i < array.size(); i++) {
            arr[i] = array.get(i);
        }

        return arr;
    }
}