Made Basic Java Thread examples to be standalone
Added Shared Objects of Basic Java Thread examples to main class