Here you can find the source of reverse(String value)
public static String reverse(String value)
//package com.java2s; public class Main { public static String reverse(String value) { StringBuilder sb = new StringBuilder(); for (int i = value.length() - 1; i >= 0; --i) { sb.append(value.charAt(i));/*from w ww . java2s . c o m*/ } return sb.toString(); } }