Updated java threads

Threads class added..need to be completed