compare 2 string arraylist and get same value in console : I have 2 below string array list.

   ArrayList<String> sourceArray = [bg, zh_cn, cs, da, en_us];
ArrayList<String> targetArray = [bg, pt, ru, sg, da, en_us];



I want to write the code in java, where I will compare this two arraylist get the same value in output, like below.

If sourceArray equalis to targetArray then it should print below

System.out.println("bg is similar in both array"); 

Can anybody tell me how can I proceed with this..

My output should be as below:

**bg is similar in both array
da is similar in both array
en_us is similar in both array**