Implement a function that accepts an array of threads and prints the name of the thread in the TERMINATED state.
States of a thread
Print the name of the TERMINATED thread
Report a typo
Write a program in Kotlin
fun printNameOfTerminatedThread(threads: List<Thread>) {
// implement the function
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.