@@ -0,0 +1,389 @@
+package ru.job4j.taskBlockCondition;%0A%0A/**%0A * Class implementation Lock.%0A */%0Apublic class SimpleLock %7B%0A    private boolean blocked = false;%0A%0A    public synchronized void lock() throws InterruptedException %7B%0A        while (blocked) %7B%0A            wait();%0A        %7D%0A        blocked = true;%0A    %7D%0A%0A    public synchronized void unlock() %7B%0A        blocked = false;%0A        notifyAll();%0A    %7D%0A%0A%0A%7D%0A

task 1100