Update java example