/**
* 正则表达式类判断字符串内是否有非数字的字符
*
*/
public class Patern {
public static boolean adjust(String text) {
//char[]={'a','c','2','3'}
char[] cs=text.toCharArray();
for (int i = 0; i < cs.length; i++) {
char number=cs[i];
if (number < '0' || number>'9') {
return false;
}
}
return true;
}
}