I am working on a project where I take a user-inputted String and replace "and" with "&", "for" with '4', etc. and then prints out the modified String. How would I be able to do this?
PS: I know there's a replaceAll() function but that only works for characters, right? Is there any way I could use this in my code?
Thank you in advance!