本质上还是数据的CURD,只不过老师以一种有趣的方式对这些抽象概念进行了包装……
熟悉的小伙伴看的时候再还原成抽象概念就好了……
熟悉的小伙伴看的时候再还原成抽象概念就好了……
2016-09-23
Exception in thread "main" java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO)
2016-09-23
private static final String OPERATION_DELETE = "DELETE";
private static final String OPERATION_SEARCH = "SEARCH";
private static final String OPERATION_EXIT = "EXIT";
private static final String OPERATION_BREAK = "BREAK";
private static final String OPERATION_SEARCH = "SEARCH";
private static final String OPERATION_EXIT = "EXIT";
private static final String OPERATION_BREAK = "BREAK";
2016-09-20
private static final String OPERATION_MAIN = "MAIN";
private static final String OPERATION_QUERY = "QUERY";
private static final String OPERATION_GET = "GET";
private static final String OPERATION_ADD = "ADD";
private static final String OPERATION_UPDATE = "UPDATE";
private static final String OPERATION_QUERY = "QUERY";
private static final String OPERATION_GET = "GET";
private static final String OPERATION_ADD = "ADD";
private static final String OPERATION_UPDATE = "UPDATE";
2016-09-20
求问大神:不是说step的值是公用的吗 ?我想知道step的值是怎么控制的
我想到是在每个板块结束后将step的值赋值为0,可是它有个功能是,在板块的功能中跳出到主菜单,比如在添加用户,在添加用户年龄时,我输入Break回到主菜单,step的值不是乱套了?
我想到是在每个板块结束后将step的值赋值为0,可是它有个功能是,在板块的功能中跳出到主菜单,比如在添加用户,在添加用户年龄时,我输入Break回到主菜单,step的值不是乱套了?
2016-09-20
最新回答 / Nimiky
每一个方法开头有一个pervious=OPERATION_UPDATE;末位都有一个 if(OPERATION_UPDATE.equals(pervious)){step++; }因此1 == step执行之后,会直接step++,再次运行最外层的循环,当再次判断Update方法时, step就为2 进行第二步了,当方法运行成功之后 ,pervious =NULL;清空这个标志位,不会对下一个方法产生扰乱
2016-09-20