Add Java example.