Question: Create a program that reads 100 integers from the attached input file into an ArrayList. Sort the ArrayList in ascending order. Output the sorted list
Create a program that reads 100 integers from the attached input file into an ArrayList.
Sort the ArrayList in ascending order.
Output the sorted list to sorted.txt.
Calculate the average and total of the numbers.
Display the average and total of the numbers.
90448 86375 7522 98741 90258 91924 14220 8344 9112 54802 36529 74406 20368 62575 62410 46803 40039 8497 92492 75429 29583 29093 77624 49098 3656 51759 80099 17697 73259 67151 16876 24358 15615 84854 33891 86827 27568 7802 43111 62047 76941 89952 39208 46691 48521 76564 17849 80791 82289 30901 97646 2234 26135 46243 94359 72766 37750 1834 59623 68411 89233 17527 63300 63590 21360 55655 50675 16464 62963 15858 31920 31580 34271 8342 89699 89226 89412 16585 8236 28773 9584 73748 82873 32166 30187 29550 92630 21207 84469 62233 80950 66416 14709 9278 89371 87326 16876 5715 21042 48736
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
