Topic: jbuilder中怎么判断一个文本框中输入的数字还是字母啊? |
Print this page |
1.jbuilder中怎么判断一个文本框中输入的数字还是字母啊? | Copy to clipboard |
Posted by: lixaohan Posted on: 2005-09-26 10:39 jbuilder中怎么判断一个文本框中输入的数字还是字母啊? 谁能告诉我啊。谢谢了 |
2.Re:jbuilder中怎么判断一个文本框中输入的数字还是字母啊? [Re: lixaohan] | Copy to clipboard |
Posted by: anbothwell Posted on: 2005-09-27 18:57 接受得到的只是字符,需要转换才可以得到数字。 |
3.Re:jbuilder中怎么判断一个文本框中输入的数字还是字母啊? [Re: lixaohan] | Copy to clipboard |
Posted by: gsl9322 Posted on: 2005-09-28 23:37 用下面这个类就可以了 public Character(char value) Constructs a newly allocated Character object that represents the specified char value. static boolean isDigit(char ch) Determines if the specified character is a digit. static boolean isLetter(char ch) Determines if the specified character is a letter. |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |