Every time i get an example of how to do a thread, it tells me "Deprecated" which i think means the code I am using is to old! Can someone give me a 1.42 version please?
Where did you find your samples? Sun has pretty good tutorials - Google for "Sun thread tutorial" or "java thread tutorial" to find millions more. Feel free to post some of the code that's bothering the compiler and let the ranch hands try to fix it up.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Sun's Java tutorial is here. The important deprecated methods in Thread are stop(), suspend(), and resume(). The solution is simple: don't use them. Write your threads so that they will stop -- i.e., break out of a loop -- when you set a flag; then provide a method to set that flag, and you've got your own "stop"-like mechanism.