Java File I/O 問題

1. Write an application that randomly generates N integers and stores them in a binary file integers.dat. The value for N is input by the user. Open the file with a text editor and see what the contents of a binary file look like. 2. Write an application that reads the data from the file integer.dat generated in... show more 1. Write an application that randomly generates N integers and stores them in a binary file integers.dat. The value for N is input by the user. Open the file with a text editor and see what the contents of a binary file look like.

2. Write an application that reads the data from the file integer.dat generated in Exercise 1. After the data are read, display the smallest, the largest and the average.

第二題是延伸第一題,顯示出最小值 最大值 和平均數

麻煩大大們幫幫忙
20點
2 answers 2