import java.util.*;
public class AsList {
public static void main(String args[]) {
//Creating an Array of String type
String arr[] = new String[] { "A", "B", "C", "D" };
//Getting the list view of the array a
List<String> list = Arrays.asList(arr);
//Printing element of list using iterator
Iterator itr = list.iterator();
while (itr.hasNext()) {
System.out.print(itr.next() + " ");
}
}
}