mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-07 06:02:07 +08:00
修复类型转化失败问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user