Use Arrays.asList() to convert Array to List
import java.util.Arrays; import java.util.List; public class Main { public static void main(String args[]) { List<String> list = Arrays.asList("A", "B", "C", "E", "F"); dump(list); } public static void dump(List<String> list) { for (String s : list) { System.out.println(s); } } }