Implement the function printIfDaemon, which accepts a Thread object and prints daemon if the thread is daemon or not daemon otherwise.
Thread as object
Is the thread a daemon?
Report a typo
Write a program in Kotlin
fun printIfDaemon(thread: Thread) {
// implement logic
}
___
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.