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