I´m trying to replace some characters in my string but it isnt working. Can you please help me?
My code is:
String test = "ABC?!";
test = test.replaceAll("\\?","");
test= test.replaceAll("\\!, "");
Thank you so much for helping me.
Try str.replaceAll("[?!]", "");