当前位置: 技术问答>java相关
这也有错?帮帮忙吧!马上结帐
来源: 互联网 发布时间:2015-02-14
本文导语: Code1=request.getParameter("kf"); ..... if(!(Code1=null)) 这句有错: "orderadd.jsp": Error #: 553 : variable Code1 might not have been initialized at line 82 | 1、 you may define the argument like this: String Code1 = null; 2、 why not write ...
Code1=request.getParameter("kf");
.....
if(!(Code1=null))
这句有错:
"orderadd.jsp": Error #: 553 : variable Code1 might not have been initialized at line 82
.....
if(!(Code1=null))
这句有错:
"orderadd.jsp": Error #: 553 : variable Code1 might not have been initialized at line 82
|
1、 you may define the argument like this: String Code1 = null;
2、 why not write the selection sentence like this : if(Code1 != null) ?
|
应该这样写吧:String Code1 = .....
|
if (!(code1 == null)) {
|
if (!(code1 == null)) {
|
没有初始化,你试试给个初值,再检查一下?要不你写全一点,呵呵