The identical() method is wrong!
1. You should determine the length of a and b is equal or not;
2. As you write, if a[i]==b[i], result is true.It means one value is same in a and b, the array of a...