code: public static String reverse(String string) {
  		if(string != null) {
  			return new StringBuilder(string).reverse().toString();
  		}
  		return null;
  	}
docs: Reverses the input string.
  
  @param string
  the string to be reversed.
  @return
  the reversed string.