Problem 2: File Processing
Write a Java class named ReplaceText that accepts command line arguments. There are four arguments:
args[0]: the source file's name
args[1]: the target file's name
oldString: a string representing a pattern of a string. For example, any string that contains the "land" substring should be replaced with "LAND".
newString: the updated string.
The program will write the entire content in the source file to the target file and replace all occurrences of the old string with the new string.
Ask the user to re-enter the commands if the arguments are not in the valid format.
Quit the program if the source file does not exist or if the target file already exists.