简单点,说话的方式简单点。
没什么好说的,上代码:

import java.util.*;

public class Main {

    public static void main(String[] args) {
        String str;
        Scanner scanner = new Scanner(System.in);
        str = scanner.nextLine();
        StringBuffer stringBuffer = new StringBuffer(str);
        System.out.println(stringBuffer.reverse().toString());
    }
}