Introduction
Here is the source code for Main.java
Source
//package com.java2s;
import java.util.List;
public class Main {
public static String[] listToArray(List<String> l) {
String[] a = new String[l.size()];
for (int i = 0; i < l.size(); i++) {
a[i] = l.get(i);
}
return a;
}
}