Update Java example