@@ -0,0 +1,623 @@
+package ru.job4j.wait;%0A%0A%0A/**%0A * Class %3CName class%3E.%0A *%0A * @author Alexey Rastorguev (rastorguev00@gmail.com)%0A * @version 0.1%0A * @since 11.02.2018%0A */%0Apublic class SimpleLock %7B%0A    private boolean block = false;%0A%0A    public void lock() %7B%0A        if (block) %7B%0A            try %7B%0A                Thread.currentThread().wait();%0A            %7D catch (InterruptedException e) %7B%0A                e.printStackTrace();%0A            %7D%0A        %7D else %7B%0A            block = true;%0A        %7D%0A    %7D%0A%0A    public void unlock() %7B%0A        if (block) %7B%0A            block = false;%0A            Thread.currentThread().notifyAll();%0A        %7D%0A    %7D%0A%0A%7D%0A

add block Lock [task #1100]