web123456

Java deletes specified characters in strings

There are two ways to delete specified characters in Java:

1. Replace the function, replace it with blanks

String test = (“chaojimali”);
test = (“chaoji”,“”);


2. Intercept the function and delete the characters

String test = (“chaojimali”);
test = (5,12);