Thanks!
/**
* Prints the titles of all events on the calendar specified by
* {@code feedUri}.
*
* @param service
* An authenticated CalendarService object.
* @throws ServiceException
* If the service is unable to handle the request.
* @throws IOException
* Error communicating with the server.
*/
public void printAllEvents(CalendarService service, URL eventFeedUrl)
throws ServiceException, IOException {
// Send the request and receive the response:
CalendarEventFeed resultFeed = service.getFeed(eventFeedUrl,
CalendarEventFeed.class);
System.out.println("All events on your calendar:");
System.out.println();
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
CalendarEventEntry entry = resultFeed.getEntries().get(i);
System.out.println("\t" + entry.getTitle().getPlainText());
}
System.out.println();
}