Print distinct unique values of an array java