判断String 是否是数字或者整数

包:org.apache.commons.lang.math.NumberUtils
判断是否是整数方法NumberUtils.isDigits(str)
判断是否是数字NumberUtils.isNumber(nameOrId)

返回的都是boolean

猜你喜欢

转载自blog.csdn.net/DingKG/article/details/86150919