how to make a string inverse in java in eclipse