中国Java开发网 - sPara.length()和sPara.length有什么区别?
来源:百度文库 编辑:神马文学网 时间:2024/04/29 08:46:07
public boolean isNumber(String sPara){
int iPLength = sPara.length();
for(int i=0;ichar cTemp = sPara.charAt(i);
boolean bTemp = false;
for(int j=0;jif(cTemp==cNum[j]){
bTemp = true;
break;
}
}
if(!bTemp) return false;
}
return true;
}
看了这段程序,忽然在想sPara.length()和sPara.length有什么区别?
另外谁能解释一下这段程序?感谢!
in sPara.length(), length() is a method of the String class
in cNum.length, length is an attribute of the array cNum (a special class that has unique syntax)
int iPLength = sPara.length();
for(int i=0;i
boolean bTemp = false;
for(int j=0;j
bTemp = true;
break;
}
}
if(!bTemp) return false;
}
return true;
}
看了这段程序,忽然在想sPara.length()和sPara.length有什么区别?
另外谁能解释一下这段程序?感谢!
in sPara.length(), length() is a method of the String class
in cNum.length, length is an attribute of the array cNum (a special class that has unique syntax)
中国Java开发网 - sPara.length()和sPara.length有什么区别?
Terminal restriction fragment length polymorphism
-moz-border-radius-bottomright: length 的相关意思
Problem when the content have more length whe...
中国的汽油和德国的汽油有什么区别
看看瑞典的菜市场和中国有什么区别
java中&和&&区别
PDA和智能手机有什么区别
博客和论坛究竟有什么区别?
钓鱼和泡吧有什么区别?
美国众议院和参议院有什么区别
牛市和熊市有什么区别?
牛市和熊市有什么区别?
编著和专著有什么区别
美国众议院和参议院有什么区别
长石和石英有什么区别
草甸和草原有什么区别
男人和女人做梦有什么区别?
Cstr 和Str有什么区别
肾亏和肾虚有什么区别_
什么是AGPS,和GPS有什么区别??
鸡精和味精有什么区别
鸡精和味精有什么区别
图标和位图有什么区别?