結果 : find the first repeated character in a string using java