+ 1
Removing specific characters in Java
Is there a practical method for removing characters in a String in Java? I do it with substring() method, but I wish I had a more practical method.
1 Respuesta
+ 6
Using String.replace
String s = "some string";
s = s.replace("s","");
System.out.print(s); //ome tring