結果 : java code for string manipulation and finding distinct characters in string