Add visitor design pattern example

Add the java source files for the example of the visitor design
pattern.