close

public class Main {
public static void main(String args[]) throws IOException{


BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
System.out.print("請輸入字串:");
String text = buf.readLine();//輸入字串
String s = new StringBuffer(text).reverse().toString();//http://mis.hwai.edu.tw/~kevin/MISProject/JAVAProject/chapter5/c5-2.htm
System.out.println(s);


}

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 萌新-工程師 的頭像
    萌新-工程師

    工程師的雜記

    萌新-工程師 發表在 痞客邦 留言(0) 人氣()