Added Java examples