How To Find Distinct Elements In An Array In Java