Rearrange the lines to get the MyRunnable class. Mind the indentations.
ThreadLocal
Make <code>MyRunnable</code>
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
public void run() {
}
class MyRunnable implements Runnable {
}
System.out.println("threadLocalCounter of " + Thread.currentThread().getName() + ": " + threadLocal.get());
private static ThreadLocal<String> threadLocal = ThreadLocal.withInitial(() -> "value");
___
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.