auto commit
This commit is contained in:
parent
287f365615
commit
e3ad8f5c88
@ -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+)?");
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user