Adding java code per issue #1
Merge pull request #2 from ATNI/add-feature-2

Adding java code per issue #1