Updated java example. Added link to it on index page.