Is it possible to replace()
multiple strings at once?
For example:
String X = new String("I will find cookies");
String newX = X.replace(("will", "won't") + ("I", "You"));
System.out.print(newX);
OUTPUT
You won't find cookies
I know what I did was wrong and will create an error but at least you get my idea of "replacing multiples". If it's possible, what would be the better solution to this?