This is a fairly fundamental concept in Java, something everyone is expected to know well about. You may want to spend some time reading about Threading. If you are a beginner just getting into Java, you will encounter this chapter eventually in your course.
All the best.
ASCII silly question, Get a silly ANSI.
You know it is dark times when the trees riot. I think this tiny ad is their leader: