
while(console.hasNext()){
String in=console.next();
if(OPERATION_EXIT.equals(in.toUpperCase())
||OPERATION_EXIT.substring(0,1).equals(in.toUpperCase())){
System.out.println("您已成功退出女神信息.");
break;
}else if(OPERATION_GET.equals(in.toUpperCase())
||OPERATION_GET.substring(0,1).equals(in.toUpperCase())
||OPERATION_GET.equals(prenious)){
prenious=OPERATION_GET;
if(step==1){
System.out.println("请输入您要查询的女神[id]");
}else if(step==2){
try {
Goddess g=action.get(Integer.valueOf(in));
System.out.println(g.toString());
}catch (Exception e) {
e.printStackTrace();
System.out.println("您输入的id有误请重新输入!");
step=0;
}
}
step++;