結果 : 1 write a java program to reverse a string with and without reverse () function