結果 : print last character of string java