import java.util.Arrays; public class Main { public static void main(String args[]) { String s[] = {"a", "b", "c", "d"}; System.out.println(Arrays.asList(s).toString()); } }