@@ -0,0 +1,1127 @@
+package com.javarush.task.task16.task1614;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/* %0A%D0%9E%D0%B1%D1%80%D0%B0%D1%82%D0%BD%D1%8B%D0%B9 %D0%BE%D1%82%D1%81%D1%87%D0%B5%D1%82%0A*/%0A%0Apublic class Solution %7B%0A    public static volatile List%3CString%3E list = new ArrayList%3CString%3E(5);%0A%0A    static %7B%0A        for (int i = 0; i %3C 5; i++) %7B%0A            list.add(%22%D0%A1%D1%82%D1%80%D0%BE%D0%BA%D0%B0 %22 + i);%0A        %7D%0A    %7D%0A%0A    public static void main(String%5B%5D args) throws InterruptedException %7B%0A        Thread t = new Thread(new Countdown(3), %22Countdown%22);%0A        t.start();%0A    %7D%0A%0A    public static class Countdown implements Runnable %7B%0A        private int countFrom;%0A%0A        public Countdown(int countFrom) %7B%0A            this.countFrom = countFrom;%0A        %7D%0A%0A        public void run() %7B%0A            try %7B%0A                while (countFrom %3E 0) %7B%0A                    printCountdown();%0A                %7D%0A            %7D catch (InterruptedException e) %7B%0A            %7D%0A        %7D%0A%0A        public void printCountdown() throws InterruptedException %7B%0A            //add your code here - %D0%B4%D0%BE%D0%B1%D0%B0%D0%B2%D1%8C %D0%BA%D0%BE%D0%B4 %D1%82%D1%83%D1%82%0A            Thread.sleep(500);%0A            System.out.println(list.get(countFrom - 1));%0A            countFrom--;%0A        %7D%0A    %7D%0A%7D%0A

Complete task1614