摘要: public static void main(String args[]) { Pattern pattern = Pattern.compile("^[-+]?(([0-9]+)([.]([0-9]+))?|([.]([0-9]+))?)$"); Matcher isNum = pattern.matcher("1"); if (!isNum.matches()) { S... 阅读全文
posted @ 2018-10-10 15:05 小宁同学柠檬茶 阅读(20155) 评论(0) 推荐(0) 编辑