代码示例:*** 判断字符串是否为数字*public static boolean isNumeric(String str){ Pattern pattern = Pattern.compile("[0-9]*")