啥都不会的程序猴
啥都不会的程序猴
全部
题解 | #字符串反转#
全部文章
分类
题解(53)
归档
标签
去牛客网
登录
/
注册
题解 | #字符串反转#
146 浏览
0 回复
2022-07-03
啥都不会的程序猴
+关注
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
for(int i = str.length()-1;i >= 0;i--) {
System.out.print(str.charAt(i));
}
sc.close();
}
}
举报
收藏
赞
评论加载中...