Add java example.