Stacks: Reversing a string

Isn’t it a good idea to use a StringBuilder instead of a StringBuffer unless there is a specific need for things to be thread safe?

Yes, from the Javadoc:

Where possible, it is recommended that this class be used in preference to StringBuffer as it will be faster under most implementations.