Update ThreadingTest.java

updated the code which was commented before