摘要: 1 /** 2 * 判断是否为数字(正负数都行) 3 * @param str 需要验证的字符串 4 * @return 5 */ 6 public static boolean isNumeric(String str){ 7 Pattern pattern = Pattern.compile("^[-\\+]?[\... 阅读全文
posted @ 2016-09-06 16:03 风雨的叶 阅读(10246) 评论(0) 推荐(0) 编辑