結果 : write a java code to reverse a string and remove all spaces