Update MyThread.java

improved MyThread.