Java Taskbook Level 8.10

Задание 1

You are given a text file. Check that this file has one blank line at the beginning and two blank lines at the end.

Задание 2

Write a function that will take a path to a folder as a parameter and return the size of this folder.

Задание 3

Given a folder with files and subfolders. Get paths to all files in the folder and subfolders. Write the result to a new file, each path on a new line.

Задание 4

You are given a text file. It contains a text divided into sentences. Mix the words in each sentence of the text and write the resulting text into a new file.

Задание 5

Make a function that will delete a folder along with all its contents.

Задание 6

Given a folder with files and subfolders. Make a copy of this folder.

Задание 7

Write to a file all the leap years for the previous hundred years.