question archive Place 10 to 20 integer values in a text file
Subject:Computer SciencePrice: Bought3
Place 10 to 20 integer values in a text file. To simplify the problem, the values can each be placed on separate lines in a Notepad file. Name the file integer.dat.
Write a Java program to retrieve the values from the text file. Display the number of values processed, the average of the values, formatted with two decimal places, and the smallest and largest values in the series. Include appropriate exception-handling techniques with your solution.