当前位置:网站首页>中通笔试题:翻转字符串,例如abcd打印出dcba
中通笔试题:翻转字符串,例如abcd打印出dcba
2022-07-01 20:21:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
翻转一个字符,比如:abcd—>dcba
public class 倒转字符串 {
public static void main(String[] args) {
System.out.print("翻转后字符串:" );
String str = "abcde";
for (int i = str.length()-1; i>=0; i--) {
System.out.print(str.charAt(i));
}
} // 翻转后字符串:edcba
} 发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/147186.html原文链接:https://javaforall.cn
边栏推荐
- 宅男壁纸大全微信小程序源码-带动态壁纸支持多种流量主
- 4. 对象映射 - Mapping.Mapstercover
- Entering Ruxin Town, digital intelligence transformation connects "future community"
- tensorflow 张量做卷积,输入量与卷积核维度的理解
- 杰理之烧录都使用 VBAT 供电,供电电压 4.2V【篇】
- After adding cocoapods successfully, the header file cannot be imported or an error is reported in not found file
- 安装mysql时出现:需要这两个包perl(Data::Dumper),perl(JSON)
- C中main函数的几种写法
- There are four ways to write switch, you know
- 同花顺股票开户选哪个券商好手机开户是安全么?
猜你喜欢

【商业终端仿真解决方案】上海道宁为您带来Georgia介绍、试用、教程

300题线性代数 第四讲 线性方程组

宅男壁纸大全微信小程序源码-带动态壁纸支持多种流量主

杰理之烧录都使用 VBAT 供电,供电电压 4.2V【篇】

Kuberntes云原生实战一 高可用部署架构

Halcon知识:三维重构的一个尝试

Richview trvdocparameters page parameter settings

杰理之、产线装配环节【篇】

以飞地园区为样本,看雨花与韶山如何奏响长株潭一体化发展高歌

Detailed explanation and code example of affinity propagation clustering calculation formula based on graph
随机推荐
运放-滞回(迟滞)比较器全流程实战计算
面试题:MySQL的union all和union有什么区别、MySQL有哪几种join方式(阿里面试题)[通俗易懂]
朋友圈社区程序源码分享
Swiftui 4 new features complete toggle and mixed toggle multiple binding components
实战项目笔记(一)——虚拟机的创建
PHP gets the external chain address of wechat applet and applet store
tensorflow 张量做卷积,输入量与卷积核维度的理解
天气预报小程序源码 天气类微信小程序源码
杰理之、产线装配环节【篇】
Exclusive news: Alibaba cloud quietly launched RPA cloud computer and has opened cooperation with many RPA manufacturers
如果浏览器被意外关闭,react怎么缓存用户填写的表单?
Écrire un document de blog
Practical project notes (I) -- creation of virtual machine
小鸟逃票登机,如何反思,应如何解决,飞机为何怕小鸟?
喜马拉雅自研网关架构演进过程
leetcode刷题:二叉树02(二叉树的中序遍历)
MySQL数据库驱动(JDBC Driver)jar包下载
杰理之、产线装配环节【篇】
Keras machine translation practice
【let var const】