結果 : write a program to reverse a string in java without using built in methods