错误提示:The method parseInt(String) is undefined for the type Loginsample

来源:互联网 发布:js获取classname值 编辑:程序博客网 时间:2024/06/06 02:19

错误提示:The method parseInt(String) is undefined for the type Loginsample
之前运行的时候,没有问题,之间没有改变,却报错。
解决办法:
之前是使用Integer.parseInt函数将String类型转为int,现在改成下面这种形式。
Integer rowid = new Integer(id);
row.setId(rowid);
//row.setSampleid(Integer.parseInt(sampleid));
没有找到错误原因,直接改变使用的方法,以后知道原因的时候,写在这儿。

阅读全文
0 0
原创粉丝点击