add many examples of java threads