首页 > 解决方案 > Java.NumberEception.Format 错误以及如何解决

问题描述

这是代码 int orders = Integer.valueOf(txtqtyordered.getText());//购买后第一行更新数量 int newqty = txtqty - orders;

    pst = conn.prepareStatement("Update product_tbl Set pqty=? Where productno=?");
    pst.setInt(1, newqty);
    pst.setInt(2, txtpdtno);*/
   
  /* if(pst.executeUpdate()==1){
        JOptionPane.showMessageDialog(this, "Product Quantity Updated","updates",JOptionPane.INFORMATION_MESSAGE);
        LoadProducts();
        reset();
   }   

标签: number-formatting

解决方案


推荐阅读