摘要:
//采用正则表达式的方式来判断一个字符串是否为数字,这种方式判断面比较全 //可以判断正负、整数小数 //?:0或1个, *:0或多个, +:1或多个 Boolean strResult = str.matches("-?[0-9]+.*[0-9]*"); if(strResult == true) 阅读全文
posted @ 2020-05-20 13:50
可可的私房菜
阅读(309)
评论(0)
推荐(0)
摘要:
https://www.cnblogs.com/fnng/p/10056217.html 阅读全文
posted @ 2020-05-20 13:46
可可的私房菜
阅读(184)
评论(0)
推荐(0)