Как показать в методе run() условие, что может быть вызван метод showWarning()?
package com.javarush.task.task16.task1632;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
/*
Клубок
*/
public class Solution {
public static List<Thread> threads = new ArrayList<>(5);
static {
threads.add(new thread1());
threads.add(new thread2());
threads.add(new thread3());
threads.add(new thread4());
threads.add(new thread5());
}
public static void main(String[] args) {
}
}