//I command these things to you, that you may love one another. (John 15:17) package com.javarush.task.task16.task1602; /* My second thread */ public class Solution { public static void main(String[] args) { TestThread thread = new TestThread(); thread.start(); } public static class TestThread extends Thread { static{ System.out.println("it's a static block inside TestThread"); } public void run() { System.out.println("it's a run method"); } } } /* My second thread 1. СоздаÑÑ public static клаÑÑ TestThread, ÑнаÑледованнÑй Ð¾Ñ ÐºÐ»Ð°ÑÑа Thread. 2. СоздаÑÑ ÑÑаÑик блок внÑÑÑи TestThread, коÑоÑÑй вÑÐ²Ð¾Ð´Ð¸Ñ Ð² конÑÐ¾Ð»Ñ Â«it's a static block inside TestThread«. 3. ÐеÑод run должен вÑводиÑÑ Ð² конÑÐ¾Ð»Ñ Â«it's a run method«. ТÑебованиÑ: 1.âÐÐ¾Ð±Ð°Ð²Ñ Ð² клаÑÑ Solution пÑблиÑнÑй ÑÑаÑиÑеÑкий клаÑÑ TestThread. 2.âÐлаÑÑ TestThread должен бÑÑÑ ÑнаÑледован Ð¾Ñ ÐºÐ»Ð°ÑÑа Thread. 3.âÐлаÑÑ TestThread не должен ÑеализовÑваÑÑ ÐºÐ°ÐºÐ¸Ðµ-либо дополниÑелÑнÑе инÑеÑÑейÑов. 4.âСоздаÑÑ ÑÑаÑик блок внÑÑÑи TestThread, коÑоÑÑй вÑÐ²Ð¾Ð´Ð¸Ñ Ð² конÑÐ¾Ð»Ñ "it's a static block inside TestThread". 5.âÐеÑод run клаÑÑа TestThread должен вÑводиÑÑ "it's a run method". 6.âÐеÑод main не изменÑÑÑ. package com.javarush.task.task16.task1602; * My second thread * public class Solution { public static void main(String[] args) { TestThread thread = new TestThread(); thread.start(); } } */