Hi all,
Here is what i found with google to Find and Replace word in Java:
public class ReplaceAll {
public static void main(String[] args) {
String str="We want replace replace word from this string";
str=str.replaceAll("replace", "Done");
System.out.println(str);
}
}
It works well but how to do the same with a known file text?
This task was asked by my favorite idiot chief as a work.
Thank you very if someone could help me.