一、使用Java自带的函数isDigit()函数public static boolean isNumeric(String str){for (int i = str.length();--i>=0;){ if