Adding Java snippets to documentation
Merge pull request #2957 from moizjv/java-samples

Adding Java snippets to documentation