日期:2014-05-18  浏览次数:20826 次

也是一个很着急的问题!
数据库里的id是INT型的。
报错是;
The   method   setID(String)   in   the   type   ProductDetails   is   not   applicable   for   the   arguments   (int)
14:   //out.print(id);
15:   ProductDetails   item1=new   ProductDetails();
16:   item1.setContent(content);
17:   item1.setID(id);
18:   item1.setTitle(title);

ProductDetails文件就是:
int   id;
public   int   getID(){
return   id;
}
public   void   setID(int   id){
this.id=id;
}
编译过了。
怎么回事呢?



------解决方案--------------------
你慢慢找找原因吧,应该不是大问题