样例输入 | I am a student |
---|---|
样例输出 | tneduts a ma I |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
StringBuffer sb=new StringBuffer(sc.nextLine());
System.out.print(sb.reverse());
}sc.close();
}
}
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
while(sc.hasNext()){
StringBuffer sb=new StringBuffer(sc.nextLine());
System.out.print(sb.reverse());
}sc.close();
}
}