Back
In java.lang.String, the repair method each takes a pair of char's or a pair of CharSequence's (of which String is a subclass, so it'll gladly take a pair of String's). The repair program will replace all occurrences of a char or CharSequence. On the other hand, both String thoughts to replaceFirst and replaceAll are regular characters (regex). Using the reverse function can lead to subtle bugs.
31k questions
32.8k answers
501 comments
693 users