Question: Write a Java program that prompts the user to enter 10 integers. The program must then save the 10 integers comma separated into a text
Write a Java program that prompts the user to enter 10 integers. The program must then save the 10 integers comma separated into a text file called numbers.txt (see example below) . The program must then read back in the 10 numbers from the file and display the average of the numbers. HINT: you can use the split() method to retrieve the integers and then convert into Integers after reading them back in from the file. Your program must utilize proper exception handling for the case that there is an error writing or reading the file. Also your program needs to include proper javadoc comments.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
