Update Java example in readme