java一个恼火的程序
String pubDates=pubDate.getText().length(); //获得出版日期 String prices=price.getText().trim(); //获得价格信息 int i=Dao.Insertbook(ISBNs,bookTypes, // bookNames,writers,translators,publishers, // java.sql.Date.valueOf(pubDates),Double.parseDouble(prices)); // if(i==1) //返回一,表示更新成功 { JOptionPane.showMessageDialog(null,"添加成功"); // doDefaultCloseAction(); // } }