arrays.aslist.add

Java
List<String> list = new ArrayList<String>(Arrays.asList("a", "b"));
Source

Also in Java: