Creating a Java thread
Java threads are a way to have different parts of your program running at the same time.
For example, you can create an application that acceptsinput from different users at the same time, each user handled by a thread.
Also, most networking applications involve threads
you would need to create a thread that would wait for incomingmessages while the rest of your program handles your outgoingmessages.