//验证是不是数字类型 String str = "";
boolean isNum = str.matches("[0-9]+");
System.out.println(isNum);
转载于:https://www.cnblogs.com/SeaWxx/p/7978112.html
//验证是不是数字类型 String str = "";
boolean isNum = str.matches("[0-9]+");
System.out.println(isNum);
转载于:https://www.cnblogs.com/SeaWxx/p/7978112.html