Thread name

Report a typo

Implement the method getName of the ThreadUtil class which accepts a Thread object and returns its name.

Write a program in Java 17
class ThreadUtil {
public static String getName(Thread thread) {
// implement logic
}
}
___

Create a free account to access the full topic