@@ -0,0 +1,1134 @@
+package ru.szhernovoy.counter;%0A%0A/**%0A * Created by admin on 14.10.2016.%0A */%0Apublic class Count implements Runnable%7B%0A%0A    private int count = 0;%0A%0A    /*public int incremant(int value)%7B%0A            this.count += value;%0A            return this.count;%0A    %7D*/%0A%0A    public int getCount() %7B%0A        return this.count;%0A    %7D%0A%0A    /**%0A     * When an object implementing interface %3Ccode%3ERunnable%3C/code%3E is used%0A     * to create a thread, starting the thread causes the object's%0A     * %3Ccode%3Erun%3C/code%3E method to be called in that separately executing%0A     * thread.%0A     * %3Cp%3E%0A     * The general contract of the method %3Ccode%3Erun%3C/code%3E is that it may%0A     * take any action whatsoever.%0A     *%0A     * @see Thread#run()%0A     */%0A    @Override%0A    public void run() %7B%0A        //synchronized (this) %7B%0A         //   this.incremant(1);%0A        //%0A        count = count + 1;%0A        //%7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) %7B%0A        Count tiny = new Count();%0A        Thread th1 = new Thread(tiny);%0A        //Thread th2 = new Thread(tiny);%0A        th1.start();%0A        //th2.start();%0A%0A        System.out.println(tiny.getCount());%0A    %7D%0A%0A%7D%0A

add lesson 3