reverse word javadoc