examples of multithread in Java that I learned usually