dizhang663(北方的狼) :按你说的语句报错: cannot resolve symbol symbol : method pareInt (java.lang.Object) location: class java.lang.Integer int isAdmin=Integer.pareInt(row.elementAt(3)); ^
不好意思,写错了 是 Integer.parseInt() 不是 pareInt()
是这样 int isAdmin=Integer.parseInt((row.elementAt(3)).toString());
如果沒有這種最基本的類型,jsp還有甚麼混的
incompatible types
found : java.lang.Object
required: int
int isAdmin=row.elementAt(3);
这是什么原因呢?
类型匹配错了int isAdmin=Integer.pareInt(row.elementAt(3));
cannot resolve symbol
symbol : method pareInt (java.lang.Object)
location: class java.lang.Integer
int isAdmin=Integer.pareInt(row.elementAt(3));
^
是
Integer.parseInt()
不是 pareInt()
int isAdmin=Integer.parseInt((row.elementAt(3)).toString());