Modify the PrintInitials program so that it takes input from the keyboard but prints output to a

Question:

Modify the PrintInitials program so that it takes input from the keyboard but prints output to a file named output.txt. Use these suggestions:

Add import java.io.PrintWriter; Append throws Exception to the main method header. Add this declaration:

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: