利用StringBuffer里面的reverse来实现字符串的倒序输出
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
StringBuffer T=new StringBuffer(sc.nextLine());
System.out.print(T.reverse());
}
利用StringBuffer里面的reverse来实现字符串的倒序输出
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
StringBuffer T=new StringBuffer(sc.nextLine());
System.out.print(T.reverse());
}