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...


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.




May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here