arraylist array

Java
ArrayList<String> a = new ArrayList<>( Arrays.asList(oldArray));

Source

Also in Java: