Question: IN JAVA, Use Scanner and PrintWriter class Exercise 3. Write a program that reads a file, removes any blank lines, and writes the non-blank lines
IN JAVA,
Use Scanner
and PrintWriter class
Exercise 3. Write a program that reads a file, removes any blank lines, and writes the non-blank lines back to the same file. You do not have to make this program interactive at all (e.g. they don't have to be able to input the file name with the Scanner)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
