题解 | #反向输出一个四位数#
反向输出一个四位数
http://www.nowcoder.com/practice/1f7c1d67446e4361bf4af67c08e0b8b0
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String str = in.readLine();
StringBuilder sb = new StringBuilder(str);
System.out.println(sb.reverse());
}
}