結果 : java code to get last character of string