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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!