boolean result;
try{
result = Integer.parseInt(zz)>1;}catch(Exception e){
result = false;
}
try{
result = Integer.parseInt(zz)>1;}catch(Exception e){
result = false;
}
解决方案 »
- 在TOMCAT中如何让日志写入文件?
- 奇怪!这是怎么回事?
- 刚刚接触ECLIPSE,哪位介绍一下这方面的书,谢谢了!
- 请教,resin3.0如何设置session的时间?在线等待。。。。。
- myeclise 的Myeclipse database Explorer能不能连access数据库
- JAVABEAN里读不出来数据?近来帮看一下
- 在jsp里面怎样自定义函数?
- 请教用Struts开发web应用时候,数据库的设计和类的设计问题
- 怎样把JSP里的数组里的值赋值到javascript脚本?thanks
- 为什么用absolute()方法实现的分页显示取出的字符数据都是16进制的呢?
- 如何制作可固定开头几列的列表(table)
- 当jbuilder和weblogic整合后,用jbuilder开发jsp时老是出现这个问题!!烦
if (zz>1){
for( int i; i<zz;i++);
改成怎么写??
try{
result = Integer.parseInt(zz)>1;}catch(Exception e){
result = false;
}
for( int i; i<zz && result;i++);
try{
intZZ= Integer.parseInt(zz);}catch(Exception e){}
if(intZZ>1){
for( int i=0; i<zz ;i++);
do what you want;
java.lang.String to int.
for( int i=1; i<zz ;i++);
or your style:int intZZ = 0;
try{
intZZ= Integer.parseInt(zz);}catch(Exception e){}
if(intZZ>1){
for( int i=0; i<intZZ ;i++);