字符串数字检测
int isNaN(String x)
功能:检测
X
是否为数字
X
:要检测的数据
返回值:
-1
为不是数字,
0
为是数字
例:
int x;
x= isNaN(“100”);
x
的结果为
0