auto commit
This commit is contained in:
parent
034a3adb18
commit
3ec5475080
|
@ -920,8 +920,7 @@ public boolean match(char[] str, char[] pattern) {
|
|||
|
||||
```java
|
||||
public boolean isNumeric(char[] str) {
|
||||
String string = String.valueOf(str);
|
||||
return string.matches("[\\+-]?[0-9]*(\\.[0-9]*)?([eE][\\+-]?[0-9]+)?");
|
||||
return new String(str).matches("[+-]?\\d*(\\.\\d+)?([eE][+-]?\\d+)?");
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user