Skip to main content
deleted 15 characters in body
Source Link
ngrashia
  • 9.9k
  • 5
  • 45
  • 58

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 ); 

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 ); 

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 ); 
edited body
Source Link
Chris Kessel
  • 5.9k
  • 7
  • 42
  • 60

The original String isn't being modified. The call returns the modified string, so you'd need to do this:

String modded = myDoubltStringmyDoubleString.replace(".",","); System.out.println( modded ); 

The original String isn't being modified. The call returns the modified string, so you'd need to do this:

String modded = myDoubltString.replace(".",","); System.out.println( modded ); 

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 ); 
Source Link
Chris Kessel
  • 5.9k
  • 7
  • 42
  • 60

The original String isn't being modified. The call returns the modified string, so you'd need to do this:

String modded = myDoubltString.replace(".",","); System.out.println( modded );