Get Distinct Values From Object Array Creation In Java