I'm trying to figure out how the str.replaceAll(string, newString)
method works. I know how to use it, but I'm trying to figure out what goes on inside the method. Does it use multiple for loops and strings, or something more advanced than that? Ideas, pseudocode, and code examples would be lovely.
PS I've already searched this up, but it only shows how to use it, not how it works.