Why doesn't the String.replace() actually replace anything?

John Zukowski

In Java, Strings are immutable. Since the string cannot be modified in place, the replace() method returns a new String constructed from a modified copy of the original String's value.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact