Java tutorial
//package com.java2s; //License from project: Apache License import java.util.ArrayList; import java.util.List; public class Main { public static List<String> stringsToList(String[] arrayOfString) { if ((arrayOfString == null) || (arrayOfString.length == 0)) return null; ArrayList<String> list = new ArrayList<String>(); for (int i = 0; i < arrayOfString.length; i++) list.add(arrayOfString[i]); return list; } }