結果 : java code to get distinct values from list