1.用JAVA自带的函数 public static boolean isNumeric(String str){ for (int i = 0; i (); i++){ System.out.println(str.charAt(i)); if (!Character.isDigit(str.charAt(i))){ return false;
1.用JAVA自带的函数 public static boolean isNumeric(String str){ for (int i = 0; i