To create and initialize Array in just one line in Java use:
String[] coolStringArray = new String[]{"a" , "b" , "c"};
System.out.println(" Array : " + Arrays.toString(coolStringArray));
To create an ArrayList with three elements use:
List<String> xStringList = new ArrayList<String>();
xStringList.add("a");
xStringList.add("b");
xStringList.add("c");
To know more click here.