Added a monitor written in Java. It first acts as a client, and then a
server.