Make <code>MyRunnable</code>

Report a typo

Rearrange the lines to get the MyRunnable class. Mind the indentations.

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");
              
___

Create a free account to access the full topic