题解 | #字符逆序#
字符逆序
http://www.nowcoder.com/practice/cc57022cb4194697ac30bcb566aeb47b
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner sc=new Scanner(System.in);
char[] s=sc.nextLine().toCharArray();
StringBuffer relsut= new StringBuffer();
for(int i=s.length;i>0;i--){
relsut.append(s[i-1]);
}
System.out.print(relsut);
}
}