Código:
StringBuffer sb = new StringBuffer("Buenos dias palomar.");
StringBuffer bs = sb.reverse();
Si imprimis bs obtendras...
---------------------------------------------------------------------------------
Código:
StringBuffer sb = new StringBuffer((String)request.getParameter("cadena"));
StringBuffer bs = sb.reverse();