//接受一个只包含小写字母的字符串,然后输出该字符串反转后的字符串。(字符串长度不超过1000


 

 

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
//接受一个只包含小写字母的字符串,然后输出该字符串反转后的字符串。(字符串长度不超过1000
           Scanner scanner = new Scanner(System.in);
           String num01 = scanner.nextLine();
           if(num01.length()>1000) {
               System.out.println("输入长度超标");
           }else {
               StringBuffer sb = new StringBuffer(num01);
               System.out.println(sb.reverse().toString());
           }
           
    }

}

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM