Threads

 

Threads are an effective tool that I learned during my education.

 

They can be used to run separate functions completely or they can be a function themselves.

 

If an error were to happen in these threads they can be caught and the issue minimized.

 

The sample is just a piece of what I learned.  It runs the threads and with the .join function waits until all previous threads are complete.

 

Code Sample

TMain.java