Comparing two ArrayLists elements but getting in correct result.

Printable View