Checkout this Multi-Threading feature of Java. Explained with example. Give it a shot
Primary LanguageJava