what is the difference between replace and replace all
Answers
Answered by
8
Answer:
What's the difference between the java.lang.String methods replace() andreplaceAll() , other than that the later uses regex. A: Just the regex. They both replace all :) The replace() method is overloaded to accept both a primitive char and a CharSequence as arguments.
Answered by
32
Answer:
Replace means it replace a thing from one place to another place.
Replace all means it will replace all the thing to different places
Similar questions