示例#1
0
 public void myDiary() {
   System.out.println("******* My diary *******");
   List<Diary> diary = diaryManager.getArrayOfDiary();
   int i = 1;
   for (Diary d : diary) {
     System.out.println(i + " | " + d.getName());
     i++;
   }
 }
示例#2
0
 public void createDiary(String name) {
   diaryManager.createDiary(name);
 }