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