Exemplo n.º 1
1
  private static void command(String input) {

    if (commander.equals("PRINT")) {
      movieList.printListAll(movieList);
    } else if (commander.equals("SEARCH")) {
      keyword = genre;
      // 리스트 중 keyword 를 포함하는 것이 있으면 다 출력한다.
      movieList.search(keyword);
    } else if (commander.equals("INSERT")) {
      movieList.insert(genre, title);
    } else if (commander.equals("DELETE")) {
      movieList.delete(genre, title);
    }
  }
Exemplo n.º 2
0
 public DefFun search(String name) {
   ContFun tmp = (ContFun) Lista.search(name);
   return tmp.getFun();
 }