星空网 > 软件开发 > Java

344. Reverse String

Write a function that takes a string as input and returns the string reversed.

Example:
Given s = "hello", return "olleh".

代码如下:

方法一:

1 public class Solution {2   public String reverseString(String s) {3 4     StringBuffer t=new StringBuffer(s);5     return t.reverse().toString();6   }7 }

 




原标题:344. Reverse String

关键词:string

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

蚁户助手:https://www.goluckyvip.com/tag/6049.html
苏宁跨境电商:https://www.goluckyvip.com/tag/605.html
DataH:https://www.goluckyvip.com/tag/6050.html
德国账户开户:https://www.goluckyvip.com/tag/60509.html
德国股市开户:https://www.goluckyvip.com/tag/60512.html
在德国 股票账户开户:https://www.goluckyvip.com/tag/60514.html
武陵山大裂谷周围景点 武陵山大裂谷周围景点图片:https://www.vstour.cn/a/411233.html
南美旅游报价(探索南美洲的旅行费用):https://www.vstour.cn/a/411234.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流