I have question about String class in Java.
I want remove every punctuation marks. To be exact I use replace() method and replace all marks for: "";
But my question is can I do it more smoothly? Becouse now I replace every sign separately
String line1 = line.replace(".", "");
String line2 = line1.replace("?", "");
String line3 = line2.replace("!", "");
String line4 = line3.replace("\n", "");
Ok I find helpful and nice solution.