private static void testNoteEntry(DoubanService myService) { NoteEntry noteEntry; NoteFeed noteFeed; try { String noteId = "17730279"; noteEntry = myService.getNote(noteId); printNoteEntry(noteEntry); noteFeed = myService.getUserNotes("aka", 2, 2); for (NoteEntry ne : noteFeed.getEntries()) { printNoteEntry(ne); } } catch (IOException e) { e.printStackTrace(); } catch (ServiceException e) { e.printStackTrace(); } }