1.遍历billItems
2.第二个你不是做了类型转换么

解决方案 »

  1.   

    myResultSet1哪来的,没定义嘛~
    应该是myResultSet.getString("price")吧
      

  2.   

    price如果在库表定义是数值型,那么可以myResultSet1.getDouble("price")来获取
    建议LZ试试
      

  3.   

    你的SQl语句写成这样 "where name in('"+billItems.get(0)+"','"+billItems.get(1)+"','"billItems.get(2))+"','"+billItems.get(3)+"')"
      

  4.   

    myResult.getDouble("price");
    ResultSet 类有很多方法,getLong,getInt,getString()