replace all punctuation in string java

Java
inputString.replaceAll("\\p{Punct}", "");
Source

Also in Java: