結果 : remove duplicate characters from a string and print it in java