Add example section to Java API docs