結果 : reverse function in java for array