受不了了,拒绝在新的成熟的版本使用前,在CSDN贴任何代码和文字 他竟然不会自动换行。 搞笑 想看帖子内容,到这里
http://www.java2000.net/viewthread.jsp?tid=426
public static boolean isDouble(String str) {
Pattern pattern = Pattern.compile("^[-\\+]?\\d+(\\.\\d*)?|\\.\\d+$");
return pattern.matcher(str).matches();
}
发表于 @ 2008年07月08日 20:05:00|评论(loading...)|收藏