Update java hello world

added documentation