public class Main {
public static void main(String[] args) {
String[] array = {"Dog", "Cat", "Horse", "Turtle"};
ArrayList<String> array1 = new ArrayList<>();
for (int i = 0; i < array.length; i++) {
array1.add(array[i]);
}
System.out.println(array1);
}