Starting out with Java: From control structures through objects
Chapter 4
Programming Challenges
3. Distance File
Modify the program you wrote for Programming Challenge 2 (Distance Traveled) so it writes the report to a file instead of the screen. Open the file in Notepad or another text editor to confirm the output.
Gaddis, Tony (2015-05-29). Starting Out with Java: From Control Structures through Objects (Page 263). Pearson Education.
Kindle Edition.
Happy Steeming Everyone! :)