This commit is contained in:
Coloryr committed 2024-04-18 09:03:23 +08:00
1 parent a81f620811
commit abd11eba3f
13 files changed
+118 -89

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import java.util.regex.Pattern;
public class Function {
public static boolean isInteger(String str) {
Pattern pattern = Pattern.compile("^[-+]?[\\d]*$");
Pattern pattern = Pattern.compile("^[-+]?\\d*$");
return pattern.matcher(str).matches();
}