android判断字符串是否为数字

public static boolean isNumeric(String str){ 
   Pattern pattern = Pattern.compile("[0-9]*"); 
   return pattern.matcher(str).matches();    

猜你喜欢

转载自blog.csdn.net/u014035162/article/details/27589153
今日推荐