for (Notebook notebook : notebooks) {
System.out.println("Notebook: " + notebook.getName());
// Next, search for the first 100 notes in this notebook, ordering
// by creation date
NoteFilter filter = new NoteFilter();
filter.setNotebookGuid(notebook.getGuid());
filter.setOrder(NoteSortOrder.CREATED.getValue());
filter.setAscending(true);
NoteList noteList = noteStore.findNotes(filter, 0, 100);
List<Note> notes = noteList.getNotes();
for (Note note : notes) {
System.out.println(" * " + note.getTitle());