Added example in Java.
Merge pull request #37 from jmlvega/master

Added example in Java.