These two classes form an example of how to use an executorService in java. Each time it runs it outputs the messages in a different order, showing how threads run independently of each other. If you find any mistakes in the code then please let me know.