提交 e3ad8f5c 编写于 作者: C CyC2018

auto commit

上级 287f3656
...@@ -1017,6 +1017,8 @@ public boolean match(char[] str, char[] pattern) { ...@@ -1017,6 +1017,8 @@ public boolean match(char[] str, char[] pattern) {
```java ```java
public boolean isNumeric(char[] str) { public boolean isNumeric(char[] str) {
if (str == null)
return false;
return new String(str).matches("[+-]?\\d*(\\.\\d+)?([eE][+-]?\\d+)?"); return new String(str).matches("[+-]?\\d*(\\.\\d+)?([eE][+-]?\\d+)?");
} }
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册