3 import java.io.IOException;
4 import java.sql.SQLException;
10 public class CommandController {
12 public CommandController(){
16 public boolean CommandSelector(String com) throws IOException, SQLException, ClassNotFoundException{
17 UserTaskModel utaskmodel = new UserTaskModel();
18 UserTaskView utaskview = new UserTaskView();
19 String comlist[] = com.split(" ");
20 String head = comlist[0];
21 String arg[] = new String[comlist.length-1];
24 for (int i = 0;i < comlist.length-1; i++) {
25 arg[i] = comlist[i+1];
28 if(head.equals("mktask")){
29 utaskmodel.makeTask(arg);
30 } else if(head.equals("rmtask")){
32 } else if(head.equals("lstask")){
33 utaskview.showTaskList();
34 } else if(head.equals("vmrun")){
36 } else if(head.equals("exit")){
39 System.out.println("command not found.");