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

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

        return arr;
    }
}