如何判断输入的是不是数字呀?# Java - 爪哇娇娃t*o2005-10-07 07:101 楼In Java, how to validate whether the input is a number or not? Thanks.
g*g2005-10-07 07:102 楼What kind of Number? For simple one, a try and catchInteger/Double of parseInt/parseDouble may be enough,for complicated one, check NumberFormat【在 t****o 的大作中提到】: In Java, how to validate whether the input is a number or not? Thanks.
a*e2005-10-07 07:103 楼boolean isDigit(char)【在 t****o 的大作中提到】: In Java, how to validate whether the input is a number or not? Thanks.
c*z2005-10-07 07:104 楼use regular expression【在 t****o 的大作中提到】: In Java, how to validate whether the input is a number or not? Thanks.