using System; using System.Web; using System.Text; using System.Web.UI.WebControls; using System.Text.RegularExpressions; public class ValidateHelper { private static Regex RegNumber = new Regex("^[0-9]+$"); p…
public class StringDemo{ public static void main(String args[]){ String str ="12343264sd6223"; if (isNumber(str)){ System.out.println("字符串由数字组成!"); } else { System.out.println("字符串由非数字组成!"); } } public static boolean isNumber…