摘要: View Code import java.util.regex.Pattern;public class NumberTest { /** * 正则表达式 * @param str * @return */ public static boolean isNumberic(String str){ Pattern pattern = Pattern.compile("[0-9]*"); return pattern.matcher(str).matches(); } /** * java自带函数 * @... 阅读全文
posted @ 2012-11-02 16:45 胖hu 阅读(311) 评论(0) 推荐(0)