guys i9 know it is dummy qustion but i am beginner .. i have this class
public class threadLocal {
private static ThreadLocal<String> myThreadLocal;
public threadLocal(){
myThreadLocal = new ThreadLocal<String>();
}
public static ThreadLocal<String> getMyThreadLocal() {
return myThreadLocal;
}
public static void setMyThreadLocal(ThreadLocal<String> myThreadLocal) {
threadLocal.myThreadLocal = myThreadLocal;
}
}
and i want to call it like this in another class
myThreadLocal.setMyThreadLocal("patrick");
so what changes should i do in threadLocal class ??