Welcome aboard! We are happy you are here and wish you good net-raft!
class ReplaceFunc {
String a;
String Result() {
a = a.replace("*","");
a = a.replace("?","");
a = a.replace("!","");
a = a.replace("+","");
return a;
}
}
public class Main {
public static void main(String[] args) {
ReplaceFunc mytext = new ReplaceFunc();
String MyRepText;
mytext.a = "text * text ? text!";
MyRepText = mytext.Result();
System.out.println(MyRepText);
}
}
The most helpful JAVA solutions
how to get the minimum value from array using java ?JAVA Click to see more ... 794 49