Print name of TERMINATED thread

Report a typo

Implement a method that accepts an array of threads and prints the name of the thread in TERMINATED state.

There is only one thread in TERMINATED state.

Write a program in Java 17
class ThreadUtil {
static void printNameOfTerminatedThread(Thread[] threads) {
// implement the method
}
}
___

Create a free account to access the full topic