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