Here you can find the source of convertArrayToList(String[] array)
private static List<String> convertArrayToList(String[] array)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Main { private static List<String> convertArrayToList(String[] array) { List<String> list = new ArrayList<>(Arrays.asList(array)); // list.remove(0); return list; }/*from w w w .ja v a 2 s. c om*/ }