Getting value of variable from Thread class to main class

I have a problem, with getting value of a variable that is set in thread. I start the Thread in a main class, thread gets the value from server and sets it as static variable. After starting the thread I try to print the value of" threadObjetc.staticvariable " but every time it has a null value. I suppose that the reason for that is that thread works in a background and functions of main class continues anyway. If someone had a similar problem and could help me to avoid it I would be gratefull for help, Thanks

[536 byte] By [konio] at [2007-9-30 6:16:55]
# 1
Please post some *minimal* code that illustrates your problem, and what you were expecting.
ChuckBing at 2007-7-1 20:18:06 > top of Java-index,Administration Tools,Sun Connection...