题解 | #提取不重复的整数#
数字颠倒
http://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int m = sc.nextInt();
String str = m+"";
StringBuffer sb = new StringBuffer();
for (int i = str.length()-1;i>=0;i--){
sb.append(str.charAt(i));
}
System.out.println(sb.toString());
}
}