- 读取字符串
- 反转字符串输出
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
StringBuffer bf = new StringBuffer(sc.nextLine());
System.out.println(bf.reverse());
}
}
}