auto commit
This commit is contained in:
parent
287f365615
commit
e3ad8f5c88
|
@ -1017,6 +1017,8 @@ public boolean match(char[] str, char[] pattern) {
|
|||
|
||||
```java
|
||||
public boolean isNumeric(char[] str) {
|
||||
if (str == null)
|
||||
return false;
|
||||
return new String(str).matches("[+-]?\\d*(\\.\\d+)?([eE][+-]?\\d+)?");
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user