摘要:
运用正则表达式: public static boolean isNumber(String str){ String reg = "^[0-9]+(.[0-9]+)?$"; return str.matches(reg); } 正则之二: public static boolean isNumbe 阅读全文
posted @ 2020-03-06 17:56 且行且思 阅读(2988) 评论(0) 推荐(0) 编辑
|
|||
摘要:
运用正则表达式: public static boolean isNumber(String str){ String reg = "^[0-9]+(.[0-9]+)?$"; return str.matches(reg); } 正则之二: public static boolean isNumbe 阅读全文
posted @ 2020-03-06 17:56 且行且思 阅读(2988) 评论(0) 推荐(0) 编辑 |
|||