Sei sulla pagina 1di 3

a. On the Set2 folder add two text files File1 and File2 b.

In file File1 add the following data, while File2 just leave it empty.

Problem 1: (40 points) 1. Create a java appli ation that will read!write the text files from folder Set1.

". #he program will read the numbers from myFileToRead and ompute and display for the average. $. %fter omputing and displaying the average write the result in the text file myFileToWrite. &xample output:

Problem ": (40 points) 1. Create a java appli ation that will read!write the text files from folder Set2. ". #he program will read the numbers from File1 and write all numbers to 'File2. &xample output:

File1 Data

File2 Data

Potrebbero piacerti anche