Update the Java MultiThreads