結果 : program to remove repeated characters in a string in java