The second task(Java).
The Sapper.