Question
write a java program With a given data file called data.txt contains integer numbers, write a program that will open the file and read all
write a java program
With a given data file called data.txt contains integer numbers, write a program that will open the file and read all the integer numbers and determine how many numbers were read, the smallest number, the largest number, the sum of all numbers, and the average value. The result should be stored into a file called dataOutput.txt. The program should also sort all numbers in ascending order and output the results (10 numbers per line) into a file mentioned. Your program should implement Java ArrayList class, Java File I/O, and Java error handling excaption.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started