Объясните мне,почему здесь не работает Класс (TestThread должен быть унаследован от класса Thread.),что должен делать метод старт, и что сделать чтоб это прошло
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 Thread {
public void start() {
run();
}
public static void run() {
System.out.println("it's a run method");
}
}
public static class TestThread extends Thread{
static {
System.out.println("it's a static block inside TestThread");
}
}
}