C#if else 规则

2025-03-22 23:39:23
推荐回答(1个)
回答1:

public static boolean isNumeric(String str){
for (int i = str.length();--i>=0;){
if (!Character.isDigit(str.charAt(i))){
return false;
}
}
return true;
}