阅读背景:

在java中加倍字符串的字母

来源:互联网 

I was asked to write a method that was passed a String and then return a String with each character doubled. I found the code on a previously asked question, but what I was wondering is why the s.charAt(i) had to be added twice.I was asked to write a method that was passed a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: