@@ -0,0 +1,1125 @@
+package com.javarush.task.task25.task2505;%0A%0A/* %0A%D0%91%D0%B5%D0%B7 %D0%B4%D1%83%D1%80%D0%B0%D0%BA%D0%BE%D0%B2%0A*/%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        MyThread myThread = new Solution().new MyThread(%22super secret key%22);%0A        myThread.start();%0A    %7D%0A%0A    public class MyThread extends Thread %7B%0A        private String secretKey;%0A%0A        public MyThread(String secretKey) %7B%0A            this.secretKey = secretKey;%0A            setUncaughtExceptionHandler(new MyUncaughtExceptionHandler());%0A        %7D%0A%0A        private class MyUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler %7B%0A            public void uncaughtException(Thread t, Throwable e) %7B%0A                try %7B%0A                    Thread.currentThread();%0A                    sleep(500);%0A                    System.out.println(String.format(%22%25s, %25s, %25s%22, secretKey, t.getName(), e.getMessage()));%0A                %7D catch (InterruptedException e1) %7B%0A                    e1.printStackTrace();%0A                %7D%0A            %7D%0A        %7D%0A%0A        @Override%0A        public void run() %7B%0A            throw new NullPointerException(%22it's an example%22);%0A        %7D%0A    %7D%0A%0A%7D%0A%0A

Task --> 2505