Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
I would rather place an if statement in your for loop to only edit the characters which are alphabetical. do something like if(Character.isAlphabetical(string.getChar(i))) { }. This means the for loop will not do anything with the blank spaces so long as you're adding to the array in the if statement.
I know this is 7 months ago but - if you're trying to change characters in a string, remember strings are immutable. Meaning you need to reinitialise it to have the edits take affect. I made the same mistake.
This comment is hidden because it contains spoiler information about the solution