結果 : how to replace a character in a string in java without using inbuilt method