Here you can find the source of stringsToList(String[] items)
Parameter | Description |
---|---|
items | a parameter |
public static List<String> stringsToList(String[] items)
//package com.java2s; import java.util.ArrayList; import java.util.List; public class Main { /**/*from w ww .j av a 2 s . c o m*/ * convert string array to array list * @param items * @return */ public static List<String> stringsToList(String[] items) { List<String> list = new ArrayList<String>(); for (int i = 0; i < items.length; i++) { list.add(items[i]); } return list; } }