I would use a For Each loop to loop through the Chars in the String. For each character you'll want to apply the transformation and then add the result to a new String. You can just use two arrays of Chars to provide the transformation. There are other ways to do it but that's probably the easiest.
That said, you can use a For loop and get the Chars from the String by index, but you get them by a NUMERICAL index. You've already got the index and you're converting it to a String. No. Use the number, not a string representation of the number.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.