当前位置:文档之家› 个人通讯录管理系统,java源代码

个人通讯录管理系统,java源代码

String lb = input.next();
String xm = input.next();
String dh = input.next();
String sjh = input.next();
String gzdw = input.next();
String zz = input.next();
System.exit(-1);
}else{
}
}
}
}
String lbbz = input.next();
Type type = new Type(lbmc,lbsm,lbbz);
typeDao.createType(type);
}else if ("2".equals(num)) {
List<Type> types = typeDao.queryType();
}else if ("4".equals(num)) {
String name = input.next();
personDao.deletePerson(name);
}else if ("5".equals(num)) {
break;
}else{
}
}
}else if ("3".equals(in2)) {
if(islogin){
}else{
System.exit(-1);
}
}else if ("2".equals(in)) {
boolean modiFlag = userDao.modify();
if(modiFlag){
}else{
}
System.exit(-1);
}else{
System.exit(-1);
TypeDao typeDao = new TypeDaoImpl();
PersonDao personDao = new PersonDaoImpl();
String in = input.next();
if ("1".equals(in)) {
boolean islogin = userDao.login();
String yzbm = input.next();
Person person = new Person(lb,xm,dh,sjh,gzdw,zz,yzbm);
personDao.createPerson(person);
}else if ("2".equals(num)) {
String name = input.next();
typeDao.deleteType(type);
}else if ("4".equals(num)) {
break;
}else{
}
}
}else if ("2".equals(in2)) {
while(true){
String num = input.next();
if ("1".equals(num)) {
for (int i = 0; i < types.size(); i++) {
Type type =types.get(i);
}
}elseng lbmc = input.next();
Type type = new Type(lbmc,null,null);
Person p = personDao.queryPerson(name);
}else if ("3".equals(num)) {
int id = input.nextInt();
String item = input.next();
String val = input.next();
personDao.updatePerson(id,item, val);
/**
*业务类
*/
public class PABmanager {
/**
*系统启动
*/
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
UserDao userDao = new UserDaoImpl();
}
while(true){
String in2 = input.next();
if ("1".equals(in2)) {
while(true){
String num = input.next();
if ("1".equals(num)) {
String lbmc = input.next();
String lbsm = input.next();
相关主题