Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    public static int[] copyListToArray(List<Integer> list) {
        int[] array = new int[list.size()];
        for (int t = 0; t < list.size(); t++) {
            array[t] = list.get(t);
        }
        return array;
    }
}