結果 : array method to remove duplicates in java