Question: Need the above requirements only, in Java. Write a program to create a file named chapter 17.dat, if it does not exist. Append new data

Need the above requirements only, in Java.
Write a program to create a file named chapter 17.dat, if it does not exist. Append new data to it if it already exists. Your program should generate and display 50 random integers and write them to the file using the writeInt(int) method in the DataOutputStream class, (binary 1/0), and close the file. Next your program should open the file. Remember that the file may contain an unspecified number of integers. Read the numbers and display the following statistics: lowest value, highest value, average value and sum
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
