Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.File;
import org.apache.commons.io.FileUtils;

public class Main {
    public static void main(String[] args) {
        long size = FileUtils.sizeOfDirectory(new File("C:/Windows"));
        System.out.println("Size: " + size + " bytes");
    }
}