.......
for (int i=0;i<UserName.length();i++)
{
char temp=UserName.charAt(i);
if (!((temp>='a'&&temp<=='z')||(temp>='A'&&temp<='Z')||(temp=='_')||(temp.indexof(temp)!=-1)))
error+="用户名只能用字母.数字和下划线组成";
allok=false;
.........
红色的代码看不懂..他是怎么完成判断不是数字的啊?求教...
for (int i=0;i<UserName.length();i++)
{
char temp=UserName.charAt(i);
if (!((temp>='a'&&temp<=='z')||(temp>='A'&&temp<='Z')||(temp=='_')||(temp.indexof(temp)!=-1)))
error+="用户名只能用字母.数字和下划线组成";
allok=false;
.........
红色的代码看不懂..他是怎么完成判断不是数字的啊?求教...
好好调完程序再发出来吧