add Java Hello World snippet