added new exercise ( thread - java )