how to find common elements from two arrays in java