修复类型转化失败问题

This commit is contained in:
zengqiao
2022-09-15 11:32:44 +08:00
parent 5d412890b4
commit 37c3f69a28
2 changed files with 38 additions and 8 deletions

View File

@@ -241,4 +241,14 @@ public class CommonUtils {
}
return intList;
}
public static boolean isNumeric(String str){
for (int i = 0; i < str.length(); i++){
if (!Character.isDigit(str.charAt(i))){
return false;
}
}
return true;
}
}