当前位置:网站首页>Medium pen test questions: flip the string, such as ABCD, print out DCBA
Medium pen test questions: flip the string, such as ABCD, print out DCBA
2022-07-01 22:11:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Flip one character , such as :abcd—>dcba
public class Invert string {
public static void main(String[] args) {
System.out.print(" Flipped string :" );
String str = "abcde";
for (int i = str.length()-1; i>=0; i--) {
System.out.print(str.charAt(i));
}
} // Flipped string :edcba
} Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/147186.html Link to the original text :https://javaforall.cn
边栏推荐
猜你喜欢
随机推荐
杰理之蓝牙耳机品控和生产技巧【篇】
Go - exe corresponding to related dependency
Simple interactive operation of electron learning (III)
开环和闭环是什么意思?
从20s优化到500ms,我用了这三招
Kuberntes云原生实战一 高可用部署架构
功利点没啥!
想请教一下,券商选哪个比较好尼?本人小白不懂,现在网上开户安全么?
工控设备安全加密的意义和措施
Halcon知识:三维重构的一个尝试
选择在同花顺上炒股开户可以吗?安全吗?
【单体】流辰信息I-BPSv3服务器推荐配置
Yan Rong looks at how to formulate a multi cloud strategy in the era of hybrid cloud
Qtreeview+qabstractitemmodel custom model: the third of a series of tutorials [easy to understand]
【智能QbD风险评估工具】上海道宁为您带来LeanQbD介绍、试用、教程
Little p weekly Vol.11
matlab遍历图像、字符串数组等基本操作
芭比Q了!新上架的游戏APP,咋分析?
手动实现function isInstanceOf(child,Parent)
杰理之、产线装配环节【篇】









