Added Java example.