题解 | #字符串反转#
字符串反转
https://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
感觉自己好丢人,我直接用reverse方法进行字符串的反转操作🤣
#工行软开##计算机网络知识点总结#
public class Main{ public static void main(String []args) throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String line=in.readLine(); if(line.length()>1000){ return; } StringBuilder lineBuilder=new StringBuilder(line); lineBuilder.reverse(); System.out.print(lineBuilder); } }
#工行软开##计算机网络知识点总结#