import java.util.*;
public class AddTwoArrayList{
public static void main(String args[]){
ArrayList<String> a1 = new ArrayList<String>();
a1.add("dog");
a1.add("cat");
a1.add("buffalo");
a1.add("lion");
a1.add("tiger");
ArrayList<String> a2 = new ArrayList<String>();
a2.add("hippo");
a2.add("cow");
a2.add("eagle");
a2.add("fox");
//storing element in new array to compare
ArrayList<String> a3 = new ArrayList<String>();
a3.addAll(a1);
a3.addAll(a2);
System.out.println("The addition of two array is :\n"+a3);
}
}