题解 | #数字颠倒#
数字颠倒
https://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
不知道为什么,做题会提前给你定义好这么多东西(只有分割线里面的是自己写的。。。
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
// =========================================================
StringBuffer sb = new StringBuffer(str);
System.out.println(sb.reverse().toString());
// =========================================================
}
}
美的集团公司福利 724人发布