adding Java examples
Merge pull request #33 from gautamarora/example-java

Adding Java examples