Starting from:

$25

CS212- Object-Oriented Programming in Java: Lab 21 Solved

Aim: Working with Java Files.

Create a new Eclipse project for Lab21.

Import the class ListFiles from Z:\Lab21, and look at the code (it was shown in lecture) and run the program. 

Create a new class called ListLargestFile and cut and paste the code from ListFiles into this class.

Modify the class so that it finds the largest file in the chosen directory and subdirectories.

Run ListLargestFile and see that it terminates normally.

More products