結果 : java get last occurrence of character in string