java array find common number