Update Threads in Java