Added java version closes #1852
Fixed print lines
removed extra character
Merge pull request #1853 from getlantern/1852

1852