Update the Threads In Java