結果 : java program to print first and last character in a string