結果 : java code to find duplicates in string