Added Java examples.