Write a program that asks the user for the names of two files. The first file should be opened for reading and the second file should be opened for writing. The program should read the contents of the first file, change all characters to uppercase, and store the results in the second files. The second file will be a copy of the first file, except that all the characters will be uppercase. Use Notepad or another text editor to create a simple file that can be used to test the program.
Note: There are many utility classes that handle file i/o. In this exercise we will demonstrate mechanism introduced in java 7 with new file IO api. In addition, we will use java 8 stream intermediate operation to call String.toUpperCase. In the event you are not using java 8 you could create a method that accepts a List and call the toUpperCase on each element.
Breaking it down
File input/output
Input
Output
Level Up
Modify the program to only capitalize the first letter of each word
Instead of using java 7 files, try using guava or apache commons file utility