public static boolean isNumber(String str)
{
Pattern p = Pattern.compile("^([+|-]?)(\\d+\\.\\d+|\\d+\\.?|\\.\\d+)([E|e][+|-]?\\d+)?$");
Matcher m = p.matcher("-5.5e-12");
return m.matches();
}
isNumber
最新推荐文章于 2022-04-19 11:25:22 发布
422

被折叠的 条评论
为什么被折叠?



