The original String isn't being modified. The call returns the modified string, so you'd need to do this:
String modded = myDoubleString.replace(".",","); System.out.println( modded ); String modded = myDoubleString.replace(".",","); System.out.println( modded );