view界面如何将姓名年龄等属性导入数据库,求代码
if(index == 1){
System.out.println("请输入女神姓名:");
name = scan.next();
goddess.setUser_name(name);
System.out.println("输入的女神姓名为:"+name);
ga.addGoddess(goddess);//这里对么?
}
if(index == 1){
System.out.println("请输入女神姓名:");
name = scan.next();
goddess.setUser_name(name);
System.out.println("输入的女神姓名为:"+name);
ga.addGoddess(goddess);//这里对么?
}
2016-03-13
举报