почему 31?
package com.javarush.task.task07.task0723;
/*
Обратный отсчёт
*/
public class Solution extends Thread {
public static void main(String[] args) throws Exception{
Thread thread = new Thread();
thread.start();
thread.sleep(100);
for (int i = 30; i >= 0; i--) {
System.out.println(i);
}
try{
thread.sleep(100);
thread.join();
}
catch(InterruptedException e){
e.printStackTrace();
}
System.out.println("Бум!");
}
/*@Override
public void run() {
System.out.println(getName());
}*/
}