最强字符反转
import java.io.BufferedReader;
import java.io.IOException; import java.io.InputStreamReader; public class trans { /** * @param args * @throws IOException */ public static void main(String[] args) throws IOException { System.out.println("input string:"); BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); System.out.println(new StringBuffer(buf.readLine()).reverse().toString()); } } |
最强字符反转
最新推荐文章于 2021-11-30 17:59:40 发布