A problem with the variables in that code is the a char is not a String. It is a single character. So oldString is not a String, it is a single character.


What is the replacement method supposed...