find common numbers in java array