We created a Queue and placed messages into one side of the Queue in a FIFO fashion. We got the messages out of the Queue and then printed them to the console (stdout).
We realized that we have to call the method in its own thread because, otherwise, our GUI might freeze.