Welcome aboard! We are happy you are here and wish you good net-raft!
class ReplaceFunc {
String a;
String Result() {
a = a.replace("world","all");
return a;
}
}
public class Main {
public static void main(String[] args) {
ReplaceFunc mytext = new ReplaceFunc();
String MyRepText;
mytext.a = "Hello world!";
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 ... 795 49