1. Write a Swing program which replaces one string by another throughout a file, writing the new version to another file. Use file choosers to obtain the file names, and use two text fields to accept the ‘from’ and ‘to’ strings. Make use of the replace method from Chapter 15.
The following questions involve console applications.
2. Write a console program which compares two files line by line. It should print a message stating that the files are either equal or not equal. Use input dialogs to obtain the file names from the user.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here